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 <[EMAIL PROTECTED]> --- layouts/fair.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/layouts/fair.c b/layouts/fair.c index 0bc2c1b..e0b29ba 100644 --- a/layouts/fair.c +++ b/layouts/fair.c @@ -54,8 +54,8 @@ layout_fair(int screen, const orientation_t orientation) for(c = globalconf.clients; c; c = c->next) if(IS_TILED(c, screen)) { - if (orientation == East) + if (((orientation == East) && (n > 2)) + || ((orientation == South) && (n <= 2))) { geometry.width = area.width / u_divisions; geometry.height = area.height / v_divisions; -- 1.6.0.2 -- To unsubscribe, send mail to [EMAIL PROTECTED]