core when the list gets out of order
Dana Jansens danakj@orodu.net
1 files changed,
7 insertions(+),
0 deletions(-)
jump to
M
openbox/stacking.c
→
openbox/stacking.c
@@ -69,6 +69,13 @@ win[i] = window_top(it->data);
stacking_list = g_list_insert_before(stacking_list, before, it->data); } + /* XXX some debug checking of the stacking list's order */ + for (it = stacking_list; ; it = next) { + next = g_list_next(it); + if (!next) break; + g_assert(window_layer(it->data) >= window_layer(next->data)); + } + XRestackWindows(ob_display, win, i); g_free(win); }