magnifier: Also resize in the case of a single window.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maarten Maathuis 2008-11-02 21:50:34 +01:00 committed by Julien Danjou
parent cfac43ecdf
commit 8d4c9b5962
1 changed files with 4 additions and 1 deletions

View File

@ -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;