awesome/lib/awful
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
..
client get_rect_by_dir: Move to `gears.geometry` 2016-05-16 14:03:00 -04:00
hotkeys_popup wibox: Create a container module 2016-05-30 17:51:19 -04:00
layout layout: Avoid uneeded redraw 2016-06-27 02:44:07 -04:00
mouse mouse.resize: Handle when there is no selected tag 2016-06-27 02:44:07 -04:00
widget graph: Move to wibox.widget 2016-05-30 17:51:19 -04:00
autofocus.lua awful.autofocus: Skip invalid screens 2016-05-08 14:52:31 +02:00
button.lua Fix luacheck warnings in half of awful 2016-02-11 21:55:32 +01:00
client.lua Lua: Remove calls to add_signal() 2016-06-04 18:23:48 +02:00
completion.lua Fix luacheck warnings in half of awful 2016-02-11 21:55:32 +01:00
dbus.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
ewmh.lua doc: Move request:: handler to their own documentation section 2016-04-30 04:27:34 -04:00
init.lua awful.wibox: Rename to awful.wibar 2016-05-15 17:17:12 -04:00
key.lua awful.key: Add a function to execute keybindings 2016-04-11 23:46:10 -04:00
keygrabber.lua Fix luacheck warnings in half of awful 2016-02-11 21:55:32 +01:00
menu.lua menu: Fix regression 2016-05-31 14:32:07 -04:00
placement.lua Lua: Remove calls to add_signal() 2016-06-04 18:23:48 +02:00
prompt.lua minor: doc / formatting 2016-04-04 20:30:44 +02:00
remote.lua Fix luacheck warnings in half of awful 2016-02-11 21:55:32 +01:00
rules.lua Make rules with 'tag = "3"' work with multiple screens (#992) 2016-07-09 19:17:35 +02:00
screen.lua gears.object.properties: Implement read-only properties 2016-06-08 20:28:31 +02:00
spawn.lua Lua: Remove calls to add_signal() 2016-06-04 18:23:48 +02:00
startup_notification.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
tag.lua tag: Fix restoring invalid tags from history (#963) 2016-06-12 13:09:09 +02:00
titlebar.lua Fix the titlebar minimize button (#995) 2016-07-09 19:06:13 +02:00
tooltip.lua Lua: Remove calls to add_signal() 2016-06-04 18:23:48 +02:00
util.lua util: Add a class deprecation function. 2016-05-30 17:51:18 -04:00
wibar.lua Lua: Remove calls to add_signal() 2016-06-04 18:23:48 +02:00
wibox.lua util: Add a class deprecation function. 2016-05-30 17:51:18 -04:00