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:
parent
c99eb954d3
commit
31f99755f7
2
xwin.c
2
xwin.c
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user