[magnifier] Check for n > 0
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
6ad47dc828
commit
1b41983a6f
|
@ -56,6 +56,10 @@ layout_magnifier(int screen)
|
||||||
if(IS_TILED(c, screen) && c != focus)
|
if(IS_TILED(c, screen) && c != focus)
|
||||||
n++;
|
n++;
|
||||||
|
|
||||||
|
/* No other clients. */
|
||||||
|
if(!n)
|
||||||
|
return;
|
||||||
|
|
||||||
geometry.x = area.x;
|
geometry.x = area.x;
|
||||||
geometry.y = area.y;
|
geometry.y = area.y;
|
||||||
geometry.height = area.height / n;
|
geometry.height = area.height / n;
|
||||||
|
|
Loading…
Reference in New Issue