From 1b41983a6f36bcdc6c21e2974f41829548c0cf83 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 27 May 2008 21:28:29 +0200 Subject: [PATCH] [magnifier] Check for n > 0 Signed-off-by: Julien Danjou --- layouts/magnifier.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/magnifier.c b/layouts/magnifier.c index 0493d5566..ccf12d73f 100644 --- a/layouts/magnifier.c +++ b/layouts/magnifier.c @@ -56,6 +56,10 @@ layout_magnifier(int screen) if(IS_TILED(c, screen) && c != focus) n++; + /* No other clients. */ + if(!n) + return; + geometry.x = area.x; geometry.y = area.y; geometry.height = area.height / n;