Merge branch 'rules_tag_by_screen' of https://github.com/psychon/awesome

This commit is contained in:
Uli Schlachter 2018-08-22 12:26:37 +02:00
commit 4d6920c165
1 changed files with 3 additions and 0 deletions

View File

@ -451,6 +451,9 @@ function rules.high_priority_properties.tag(c, value, props)
if type(value) == "string" then
local name = value
value = atag.find_by_name(c.screen, value)
if not value and not props.screen then
value = atag.find_by_name(nil, value)
end
if not value then
require("gears.debug").print_error("awful.rules-rule specified "
.. "tag = '" .. name .. "', but no such tag exists")