all repos — openbox @ a9bc09161f45b83232e6dda46a3123f5775a5087

openbox fork - make it a bit more like ryudo

core when the list gets out of order
Dana Jansens danakj@orodu.net
commit

a9bc09161f45b83232e6dda46a3123f5775a5087

parent

34e819738b344a992a1dbfd6cdd165e0c8ddb3a9

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M openbox/stacking.copenbox/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); }