awesome/lib/awful
Daniel Hahler 6dc355cf71 autofocus: use request::focus instead of request::activate
In #152 I've changed the autofocus handler to emit the request::activate
signal, instead of setting client.focus only.

This is wrong IMHO, and can be annoying:

If you have two floating clients above a tiled / maximized one, and
close one of the floating ones, with the tiled one being the one
selected by autofocus, it will be raised above the other floating
client.

This is changed now to use the new `request::focus` signal instead.

This basically reverts 20cdb5d (#152), but allows for customizing this
behavior, by overriding the default `request::focus` handler
(`ewmh.focus`).

It would be nice if there was a helper to check if a window's content
isn't visible at all (i.e. covered by other windows), and that could be
used then by the (new) default handler for request::focus - raising the
client only, if it's completely covered by another window.

Fixes https://github.com/awesomeWM/awesome/issues/217
2015-06-25 06:47:39 +02:00
..
client Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
layout Add request::focus signal, with ewmh.focus being the default handler 2015-06-25 06:47:39 +02:00
mouse Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
widget fix: rename the rest of *.lua.in files 2015-06-22 11:28:36 +02:00
autofocus.lua autofocus: use request::focus instead of request::activate 2015-06-25 06:47:39 +02:00
button.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
client.lua Add request::focus signal, with ewmh.focus being the default handler 2015-06-25 06:47:39 +02:00
completion.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
dbus.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
ewmh.lua Add request::focus signal, with ewmh.focus being the default handler 2015-06-25 06:47:39 +02:00
init.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
key.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
keygrabber.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
menu.lua Add request::focus signal, with ewmh.focus being the default handler 2015-06-25 06:47:39 +02:00
placement.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
prompt.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
remote.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
rules.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
screen.lua Add request::focus signal, with ewmh.focus being the default handler 2015-06-25 06:47:39 +02:00
startup_notification.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
tag.lua Remove some trailing whitespaces. 2015-06-19 23:13:31 +02:00
titlebar.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
tooltip.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
util.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
wibox.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00