summaryrefslogtreecommitdiff
path: root/openbox/stacking.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/stacking.c')
-rw-r--r--openbox/stacking.c4
1 files changed, 3 insertions, 1 deletions
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;