Don't focus a different screen on unmanage (FS#850)
commit23ff7a841466904ac2f3d7e8c1b58df7a562758d
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 21:27:53 +0000 (27 22:27 +0100)
treee839bba3f9843b555b4097a0524fe36805e35a42
parentb805492c2aed6794a481b2cebfacb9eb982f9d93
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