mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-11 03:32:38 +08:00
Fix signal for raising urgent clients when switching tags
Now it only raises urgent clients of the selected tag
This commit is contained in:
parent
520b754c99
commit
25ce01e408
1 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue