Fine tuned 'fairh' and 'fairv' layouts.
Modified fair layouts' behaviors when there is only 2 windows to manage. In this case each layout adopt the behavior of the other so as to look consistent with their name. fairv: +-----+ | | | | | | +-----+ fairh: +-----+ |_____| | | +-----+ Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
68ac8e1c65
commit
4379f702c3
|
@ -54,7 +54,8 @@ layout_fair(int screen, const orientation_t orientation)
|
||||||
for(c = globalconf.clients; c; c = c->next)
|
for(c = globalconf.clients; c; c = c->next)
|
||||||
if(IS_TILED(c, screen))
|
if(IS_TILED(c, screen))
|
||||||
{
|
{
|
||||||
if (orientation == East)
|
if (((orientation == East) && (n > 2))
|
||||||
|
|| ((orientation == South) && (n <= 2)))
|
||||||
{
|
{
|
||||||
geometry.width = area.width / u_divisions;
|
geometry.width = area.width / u_divisions;
|
||||||
geometry.height = area.height / v_divisions;
|
geometry.height = area.height / v_divisions;
|
||||||
|
|
Loading…
Reference in New Issue