summaryrefslogtreecommitdiff
path: root/shelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'shelf.c')
-rw-r--r--shelf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shelf.c b/shelf.c
index 87fbfb0..79fb9f0 100644
--- a/shelf.c
+++ b/shelf.c
@@ -415,10 +415,8 @@ shelfScaleWindow (CompWindow *w,
if ((float) w->width * sw->targetScale < SHELF_MIN_SIZE)
sw->targetScale = SHELF_MIN_SIZE / (float) w->width;
- if (!shelfHandleShelfInfo (w))
- return;
-
- shelfAdjustIPW (w);
+ if (shelfHandleShelfInfo (w))
+ shelfAdjustIPW (w);
damageScreen (w->screen);
}