The fair layout had the same issue as the slave columns in tiling layout
in that all strips were filled maximally with cells up to the last, and
the last strip may have significantly fewer cells than the other strips.
In my mind, that's not fair. The new strategy makes sure the numbers of
cells in any two strips differ by no more than one.
Signed-off-by: Julien Danjou <julien@danjou.info>
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>
Based on the original idea of Nathan Huesken, which was then implemented by
Gwenhael Le Moine, I completed and corrected the layout.
I added icons for the layout and modified the makefile and the aweseomerc.lua.in
to include the fair layout.
In the process I also decided to modify layoutgen.sh and tag.c, so that in the
future new layouts can be added without touching tag.c.
Signed-off-by: Julien Danjou <julien@danjou.info>