core when the list gets out of order

This commit is contained in:
Dana Jansens 2003-06-27 04:23:05 +00:00
parent 34e819738b
commit a9bc09161f

View file

@ -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);
}