From 9ca05545076ffc4c5165ce12de47173b044b57e0 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 12 Mar 2007 03:07:00 +0000 Subject: [PATCH] that was a silly mistake. fullscreen windows amongst others will not crash now :D --- openbox/stacking.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbox/stacking.c b/openbox/stacking.c index e77e199f..2050219d 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -242,8 +242,10 @@ static void restack_windows(ObClient *selected, gboolean raise) last = NULL; for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) { - if (window_layer(it->data) < selected->layer) + if (window_layer(it->data) < selected->layer) { + last = it; continue; + } /* if lowering, stop at the beginning of the layer */ if (!raise) break; -- 2.45.2