diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-09-02 19:01:36 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-09-02 19:01:36 +0200 |
commit | fed8f10652b640e9619b5fe3e591a160125f5d2d (patch) | |
tree | 6a2abdcdcf2278ac97991c7974bf5d24e0d03102 | |
parent | c846f876b818a668b9c8f1d640b67a895d350587 (diff) |
-rw-r--r-- | rc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -199,8 +199,8 @@ client.connect_signal("manage", function (c, startup) -- put new clients at the end awful.client.setslave(c) - -- give the new client focus - if c.focusable then + -- give the new client focus if it spawns on the focused page + if c.focusable and c.first_tag == mouse.screen.selected_tag then -- use pcall() because the client might be gone by the time we get to it gears.timer.delayed_call(pcall, function() c:jump_to(false) end) end |