From 25ce01e408105ea93251c094e91c8a27625faf0e Mon Sep 17 00:00:00 2001 From: elenapan Date: Wed, 25 Mar 2020 23:22:50 +0200 Subject: [PATCH] Fix signal for raising urgent clients when switching tags Now it only raises urgent clients of the selected tag --- config/awesome/rc.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 1ee49cd..480ab19 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -987,11 +987,13 @@ end) -- focused window). awful.tag.attached_connect_signal(s, "property::selected", function () local urgent_clients = function (c) - return awful.rules.match(c, {urgent = true, first_tag = mouse.screen.selected_tag}) + return awful.rules.match(c, { urgent = true }) end for c in awful.client.iterate(urgent_clients) do - client.focus = c - c:raise() + if c.first_tag == mouse.screen.selected_tag then + client.focus = c + c:raise() + end end end)