summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2008-02-12 14:14:47 +0100
committerKristian Lyngstol <kristian@bohemians.org>2008-02-12 14:14:47 +0100
commitbba000d3e1d30f47596c79307426381c1b75022f (patch)
treee4f1196246159240ed6daf1ce4b40f9b3c9caa14
parent216a9e6fc4ef7375d0e63bf394ed5419f06e1d0c (diff)
downloadshelf-bba000d3e1d30f47596c79307426381c1b75022f.tar.gz
shelf-bba000d3e1d30f47596c79307426381c1b75022f.tar.bz2
Properly damage when the shelf scale cahnges, even when going to 1.0f.
-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);
}