diff --git a/layouts/magnifier.c b/layouts/magnifier.c index 0493d556..ccf12d73 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;