From 9efc5ca40962718d2b48fef11c5782a9efcfc5f7 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 10 Apr 2016 11:32:16 +0200 Subject: [PATCH] test-urgent.lua: Test "tag by name" rules With this commit, the code added previously to awful.rules is now also tested. Signed-off-by: Uli Schlachter --- tests/test-urgent.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-urgent.lua b/tests/test-urgent.lua index 1f9706e2..63be5b65 100644 --- a/tests/test-urgent.lua +++ b/tests/test-urgent.lua @@ -35,7 +35,7 @@ local steps = { tags[awful.screen.focused()][1]:view_only() runner.add_to_default_rules({ rule = { class = "XTerm" }, - properties = { tag = tags[awful.screen.focused()][2], focus = true } }) + properties = { tag = "2", focus = true } }) awful.spawn("xterm") end @@ -75,7 +75,7 @@ local steps = { tags[awful.screen.focused()][1]:view_only() runner.add_to_default_rules({ rule = { class = "XTerm" }, - properties = { tag = tags[awful.screen.focused()][2], focus = true, switchtotag = true }}) + properties = { tag = "2", focus = true, switchtotag = true }}) awful.spawn("xterm") @@ -97,7 +97,7 @@ local steps = { manage_cb_done = false runner.add_to_default_rules({rule = { class = "XTerm" }, - properties = { tag = tags[awful.screen.focused()][2], focus = false }}) + properties = { tag = "2", focus = false }}) awful.spawn("xterm") end