summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-29 12:09:33 +0200
committerAnton Khirnov <anton@khirnov.net>2021-05-29 12:09:33 +0200
commit280d17bb2d9f2c75ee60fe97854b6f5ec3bb56cc (patch)
treea0e8dbd44a2e024a4cd3b2bd37e0c70f33e90ca7
parentfff0b7e17d91f347353675437f30281cb1fca46c (diff)
rc: always place new clients on the screen with the mouse
-rw-r--r--rc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.lua b/rc.lua
index c19dd8e..3b6f65c 100644
--- a/rc.lua
+++ b/rc.lua
@@ -172,7 +172,7 @@ client.connect_signal("manage", function (c, startup)
end
-- put the client where the mouse is
- if client.focus then
+ if c.screen ~= mouse.screen then
c:move_to_screen(mouse.screen)
end
end)