awesome/lib/awful/layout/suit
Uli Schlachter 803264a488 Fix magnifier layout when focus is on another screen
The magnifier layout wants to ignore floating clients. Before 82342f0 this was
done by calling awful.client.floating.get(focus). If "focus" was nil, this might
have checked the floating status of a wrong client (if some other client was
focused, and the code in magnifier set focus=nil before). This issue can easily
be missed and might exist since forever. After 82342f, floating status is
checked via "focus.floating" and this now causes an "attempt to index nil value"
error instead. Much easier to notice.

Fix this by adding the missing nil check and while touching the code, merge this
with the previous "if" and correct another error (the wrong thing happened if we
had #cls=0).

Fixes: https://github.com/awesomeWM/awesome/issues/1103
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-09-24 14:37:07 +02:00
..
corner.lua awful.tag: Rename nmaster to master_count 2016-04-11 23:54:28 -04:00
fair.lua Fix luacheck warnings for the rest of awful 2016-02-11 21:55:32 +01:00
floating.lua mouse: Avoid an error when the client is killed while moving 2016-04-27 19:55:39 -04:00
init.lua Add the right vim modeline to all lua files 2015-12-12 17:42:33 +01:00
magnifier.lua Fix magnifier layout when focus is on another screen 2016-09-24 14:37:07 +02:00
max.lua Fix luacheck warnings for the rest of awful 2016-02-11 21:55:32 +01:00
spiral.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
tile.lua tile: Do not use the deprecated geometry access 2016-09-11 02:10:02 -04:00