layouts: Allow layouts to be invoked with fake data
commit4120e00649da8449179d7cc63b1bf07cc09a24a3
authorEmmanuel Lepage Vallee <elv1313@gmail.com>
Mon, 13 Oct 2014 19:07:31 +0000 (13 15:07 -0400)
committerEmmanuel Lepage Vallee <elv1313@gmail.com>
Mon, 13 Oct 2014 19:07:31 +0000 (13 15:07 -0400)
treea7ffe6c505b0718bca52b56a164da512452e5cc3
parent57b6433b5317bb746a61a6aa84d6b66d506a5245
layouts: Allow layouts to be invoked with fake data

This patch allows 2 things to be done:

* Write unit test to validate layouts using fake clients and tags
* Query the current layout geometry from another tag

The advantages of the former are clear and simple. Those of the later include:

* Creating a screenshot of another layout
* Display the layout wireframe in the tag list (like KDE2-3, Gnome2)
* Having and 'ALT-tab' like visual popup for tags
lib/awful/layout/suit/magnifier.lua.in
lib/awful/layout/suit/tile.lua.in