From: Dana Jansens Date: Fri, 27 Jun 2003 04:23:05 +0000 (+0000) Subject: core when the list gets out of order X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a9bc09161f45b83232e6dda46a3123f5775a5087;p=chaz%2Fopenbox core when the list gets out of order --- diff --git a/openbox/stacking.c b/openbox/stacking.c index 220399d4..731349d9 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -69,6 +69,13 @@ static void do_restack(GList *wins, GList *before) 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); }