aboutsummaryrefslogtreecommitdiff
path: root/config/awesome
diff options
context:
space:
mode:
Diffstat (limited to 'config/awesome')
-rw-r--r--config/awesome/rc.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua
index 083343c..8b401a2 100644
--- a/config/awesome/rc.lua
+++ b/config/awesome/rc.lua
@@ -355,3 +355,16 @@ awful.rules.rules = {
client.connect_signal("focus", function (c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function (c) c.border_color = beautiful.border_normal end)
+
+client.connect_signal("manage", function (c)
+ -- Set the windows at the slave,
+ -- i.e. put it at the end of others instead of setting it master.
+ if not awesome.startup then awful.client.setslave(c) end
+
+ if awesome.startup
+ and not c.size_hints.user_position
+ and not c.size_hints.program_position then
+ -- Prevent clients from being unreachable after screen count changes.
+ awful.placement.no_offscreen(c)
+ end
+end)