From ea98919f6120e0e8f8ecc959a6a1ad869dee48b7 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 17 Aug 2018 09:44:29 +0200 Subject: [PATCH] awful.rules: Also check for tag on other screens When a tag is specified by name, awful.rules only searched for the tag on the client's screen. This commit extends the search to all screens, but only if no specific screen was specified for the new client by some rule. Signed-off-by: Uli Schlachter --- lib/awful/rules.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/awful/rules.lua b/lib/awful/rules.lua index 12ca789d..c652ede3 100644 --- a/lib/awful/rules.lua +++ b/lib/awful/rules.lua @@ -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")