awesome/lib
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
..
awful autofocus: use request::focus instead of request::activate 2015-06-25 06:47:39 +02:00
beautiful Add DPI support and 'xresources' theme 2015-06-25 06:40:38 +02:00
gears gears.object: Add :weak_connect_signal() 2015-06-25 06:37:04 +02:00
menubar Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
naughty Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
wibox Add DPI support and 'xresources' theme 2015-06-25 06:40:38 +02:00