awesome/lib
Uli Schlachter 2e13c120e8 Make rules with 'tag = "3"' work with multiple screens (#992)
The default config creates the same set of tags for all screens ("1" to "9"). An
awful.rules-rule with e.g. screen = 2, tag = "3" should obviously tag matching
clients with tag "3" of the second screen.

However, the implementation used the first matching tag in the list of all tags
and thus the client ended up tagged with tag "3" from screen 1. Fix this by
calling find_by_name() with the screen that the client is assigned to.

The existing implementation of awful.rules guarantees that any
"screen"-properties are applied before the code touched by this commit is run,
thus this should always work.

This commit does not add a test catching this because we are currently quite bad
at testing multi-screen scenarios and I don't want to invent the necessary
machinery right now.

Fixes: https://github.com/awesomeWM/awesome/issues/988
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-09 19:17:35 +02:00
..
awful Make rules with 'tag = "3"' work with multiple screens (#992) 2016-07-09 19:17:35 +02:00
beautiful Minor doc fixes 2016-03-06 14:46:13 +01:00
gears shape: Use an explicit move_to to set rounded_rect position 2016-07-04 14:34:41 -04:00
menubar Try menu_* colors before regular normal/focus (#949) 2016-06-05 17:08:43 +02:00
naughty wibox: Create a container module 2016-05-30 17:51:19 -04:00
wibox progressbar: Add missing includes documentation variables 2016-06-24 15:59:02 -04:00