From 8d4c9b5962fbba3159a495eb4f249975f5380c8d Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Sun, 2 Nov 2008 21:50:34 +0100 Subject: [PATCH] magnifier: Also resize in the case of a single window. Signed-off-by: Maarten Maathuis Signed-off-by: Julien Danjou --- layouts/magnifier.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/magnifier.c b/layouts/magnifier.c index 10c0d9283..7b5472da9 100644 --- a/layouts/magnifier.c +++ b/layouts/magnifier.c @@ -66,11 +66,14 @@ layout_magnifier(int screen) { /* No other clients. */ geometry = area; - goto bailout; } client_resize(focus, geometry, focus->honorsizehints); client_raise(focus); + /* bailout when there is only one window */ + if (!n) + goto bailout; + geometry.x = area.x; geometry.y = area.y; geometry.height = area.height / n;