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:
parent
cfac43ecdf
commit
8d4c9b5962
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue