summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-29 12:49:15 +0200
committerAnton Khirnov <anton@khirnov.net>2021-05-29 12:49:35 +0200
commit806511cee0aa94eb3b561f51e72df55085104ba5 (patch)
tree429c3d35612db85e75830faef353ab9f719791b2
parentc6aee2afa3c633c5724749a71ebfc6cbaba949a5 (diff)
rc: apply no_offscreen placement unconditionally to all clients
Should never want offscreen clients.
-rw-r--r--rc.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/rc.lua b/rc.lua
index 1802d73..0404153 100644
--- a/rc.lua
+++ b/rc.lua
@@ -148,6 +148,9 @@ awful.rules.rules = {
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.connect_signal("manage", function (c, startup)
+ -- Prevent clients from being unreachable
+ awful.placement.no_offscreen(c)
+
if not startup then
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
@@ -156,11 +159,7 @@ client.connect_signal("manage", function (c, startup)
-- Put windows in a smart way, only if they does not set an initial position.
if not c.size_hints.user_position and not c.size_hints.program_position then
awful.placement.no_overlap(c)
- awful.placement.no_offscreen(c)
end
- elseif not c.size_hints.user_position and not c.size_hints.program_position then
- -- Prevent clients from being unreachable after screen count change
- awful.placement.no_offscreen(c)
end
-- put the client where the mouse is