summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-29 12:10:13 +0200
committerAnton Khirnov <anton@khirnov.net>2021-05-29 12:10:46 +0200
commitb073f15cc8ce9644377c18812b1f968c48d3312d (patch)
tree7379d1e3534d2367a8a1c4e2d44553072ec9ef4a
parent280d17bb2d9f2c75ee60fe97854b6f5ec3bb56cc (diff)
rc: give focus to newly-spawned clients
-rw-r--r--rc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.lua b/rc.lua
index 3b6f65c..8e72d05 100644
--- a/rc.lua
+++ b/rc.lua
@@ -175,6 +175,11 @@ client.connect_signal("manage", function (c, startup)
if c.screen ~= mouse.screen then
c:move_to_screen(mouse.screen)
end
+
+ -- give the new client focus
+ if c.focusable then
+ gears.timer.delayed_call(function(c) c:jump_to(false) end, c)
+ end
end)
client.connect_signal("focus", function(c) c.border_color = "#b0e2ff" end)