From b073f15cc8ce9644377c18812b1f968c48d3312d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 29 May 2021 12:10:13 +0200 Subject: rc: give focus to newly-spawned clients --- rc.lua | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3