awesomerc: only uses placement when no hints (FS#637)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-09-23 10:07:02 +02:00
parent 61d2712076
commit 1bf296dfce
1 changed files with 5 additions and 3 deletions

View File

@ -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)