summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-04-08 16:55:25 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-08 16:55:25 +0200
commitd314f92c903f88d5e1eddf63ed7b17da05ce2b26 (patch)
tree516a3dd1bbd74c2d9df4a92c6d1dae154f3b46be /rc.lua
parentd84d336d6ceb7cdf340d6fba9d9e030192a19091 (diff)
rc: place new clients on the screen where the mouse currently is
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.lua b/rc.lua
index 97cd114..06819e8 100644
--- a/rc.lua
+++ b/rc.lua
@@ -182,6 +182,11 @@ client.connect_signal("manage", function (c, startup)
-- Prevent clients from being unreachable after screen count change
awful.placement.no_offscreen(c)
end
+
+ -- put the client where the mouse is
+ if client.focus then
+ c:move_to_screen(mouse.screen)
+ end
end)
client.connect_signal("focus", function(c) c.border_color = "#b0e2ff" end)