summaryrefslogtreecommitdiff
path: root/openbox/stacking.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-12 03:07:00 +0000
committerDana Jansens <danakj@orodu.net>2007-03-12 03:07:00 +0000
commit9ca05545076ffc4c5165ce12de47173b044b57e0 (patch)
tree2b4067cdad0dbde3e5951b9b08a840d3735de591 /openbox/stacking.c
parent52176d1485e77ba3280ba210b4503eca20928af6 (diff)
that was a silly mistake. fullscreen windows amongst others will not crash now :D
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;