summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.lua b/rc.lua
index 28eb8e8..53f4987 100644
--- a/rc.lua
+++ b/rc.lua
@@ -201,7 +201,8 @@ client.connect_signal("manage", function (c, startup)
-- give the new client focus
if c.focusable then
- gears.timer.delayed_call(function(c) c:jump_to(false) end, c)
+ -- 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
end)