Fix bug were for loop will always run until break is hit.

When 'i' is an unsigned int, it can never become negative and
stop the for loop iterating over the children.
This commit is contained in:
Henrik Andersson 2017-10-17 10:00:22 +02:00
parent c99eb954d3
commit 31f99755f7

2
xwin.c
View File

@ -649,7 +649,7 @@ sw_window_is_behind(Window wnd, Window behind)
Window dummy1, dummy2; Window dummy1, dummy2;
Window *child_list; Window *child_list;
unsigned int num_children; unsigned int num_children;
unsigned int i; int i;
RD_BOOL found_behind = False; RD_BOOL found_behind = False;
RD_BOOL found_wnd = False; RD_BOOL found_wnd = False;