From: Dana Jansens Date: Mon, 12 Mar 2007 03:07:00 +0000 (+0000) Subject: that was a silly mistake. fullscreen windows amongst others will not crash now :D X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=9ca05545076ffc4c5165ce12de47173b044b57e0;p=chaz%2Fopenbox that was a silly mistake. fullscreen windows amongst others will not crash now :D --- 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;