X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fstacking.c;h=2050219db83de16556bcfc21de36036b3802ad31;hb=9ca05545076ffc4c5165ce12de47173b044b57e0;hp=e77e199fb41a4b2559fd66805ed4874730f6ba6c;hpb=2244bc036a9c96704675318dc382ea3abd6f3fdf;p=chaz%2Fopenbox 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;