diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-27 04:23:05 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-27 04:23:05 +0000 |
| commit | a9bc09161f45b83232e6dda46a3123f5775a5087 (patch) | |
| tree | 5731f98fdfbff4dcf476951d653f305d7df5d8f4 | |
| parent | 34e819738b344a992a1dbfd6cdd165e0c8ddb3a9 (diff) | |
core when the list gets out of order
| -rw-r--r-- | openbox/stacking.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |
