From 36d917891771913e4bc6a2bd72b7d4ef32c27da8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 18 Sep 2009 11:35:59 +0200 Subject: [PATCH] awesomerc: enable smart placement Signed-off-by: Julien Danjou --- awesomerc.lua.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 7c0360be2..bc50b115d 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -310,9 +310,15 @@ client.add_signal("manage", function (c, startup) end end) - -- Set the windows at the slave, - -- i.e. put it at the end of others instead of setting it master. - -- awful.client.setslave(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. + -- awful.client.setslave(c) + + -- Put windows in a smart way. + awful.placement.no_overlap(c) + awful.placement.no_offscreen(c) + end end) client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)