summaryrefslogtreecommitdiff
path: root/src/resize.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resize.c')
-rw-r--r--src/resize.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/resize.c b/src/resize.c
index ba70482..d025730 100644
--- a/src/resize.c
+++ b/src/resize.c
@@ -370,8 +370,7 @@ struct display *norefdisp;
/* If 'flayer' and 'l' are for the same window, then we will not
* restore 'flayer'. */
if (oldflayer && (l == oldflayer || Layer2Window(oldflayer) == p))
- while (oldflayer->l_next)
- oldflayer = oldflayer->l_next;
+ oldflayer = NULL;
flayer = l;
@@ -414,7 +413,7 @@ struct display *norefdisp;
/* If we started resizing a non-flayer layer, then restore the flayer.
* Otherwise, flayer should already be updated to the topmost foreground layer. */
- if (Layer2Window(flayer) != Layer2Window(oldflayer))
+ if (oldflayer)
flayer = oldflayer;
display = olddisplay;
}