From 1bf296dfcea8e5f7868da100c0c4f1ee322b3a8a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 23 Sep 2009 10:07:02 +0200 Subject: [PATCH] awesomerc: only uses placement when no hints (FS#637) Signed-off-by: Julien Danjou --- awesomerc.lua.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index a889037e..0ab8f9d4 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -318,9 +318,11 @@ client.add_signal("manage", function (c, startup) -- 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) + -- 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 end end)