awful.autofocus: improve client focus with multiple screens
commitdfd6060a53cdf7d3a372117da40a8c8eefc991f9
authorAdrian C. (anrxc) <anrxc@sysphere.org>
Sat, 9 Jan 2010 16:23:05 +0000 (9 17:23 +0100)
committerJulien Danjou <julien@danjou.info>
Sun, 10 Jan 2010 09:31:17 +0000 (10 10:31 +0100)
treefb8ceb50f1d0b464ef982b872d5351297b3b6ba4
parenta757ddabc4484a9369c30fb28327145df4f37673
awful.autofocus: improve client focus with multiple screens

Changing screen focus to an empty tag leaves focus on a client on the
previous screen, if a tag with clients is focused next the focus
remains on the previous screen. Now awful.autofocus compares the tag
screen and clients screen to learn if the focus should be given to a
client on the focused screen. Client that gets the focus is selected
from history, as usual.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
lib/awful/autofocus.lua.in