Don't focus a different screen on unmanage (FS#850)
commit88aff03005912049574e5b7f52e56f8362f6084d
authorUli Schlachter <psychon@znc.in>
Thu, 27 Jan 2011 17:10:39 +0000 (27 18:10 +0100)
committerUli Schlachter <psychon@znc.in>
Thu, 27 Jan 2011 17:10:39 +0000 (27 18:10 +0100)
tree702f4148844598d5f342459cea4538adcd04fcb6
parent514fd796f3272583ee409b784fcd9ee2a6f95875
Don't focus a different screen on unmanage (FS#850)

When some client on the left monitor was closed while client.focus is on the
right monitor (e.g. 'sleep 5 ; exit' in a terminal), awful.autofocus would shift
the input focus to whatever client happened to be next in the focus history on
the left monitor.

Fix this by only ever moving the input focus between screens when a tag is
selected, not when some client does its magic.

Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/awful/autofocus.lua.in