diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-04-08 16:55:25 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-04-08 16:55:25 +0200 |
commit | d314f92c903f88d5e1eddf63ed7b17da05ce2b26 (patch) | |
tree | 516a3dd1bbd74c2d9df4a92c6d1dae154f3b46be /rc.lua | |
parent | d84d336d6ceb7cdf340d6fba9d9e030192a19091 (diff) |
rc: place new clients on the screen where the mouse currently is
Diffstat (limited to 'rc.lua')
-rw-r--r-- | rc.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |