summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-23 11:58:03 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-23 11:58:03 +0200
commit221f0685581010bca4a77cd9af24ab2ef596438b (patch)
tree3fb8d41bd9def0d1b56ee23381119b69409a504b /rc.lua
parent68bd03ba872d5b6a0dd7b8661e8a9cb54fa89a48 (diff)
downloadawesome-configs-221f0685581010bca4a77cd9af24ab2ef596438b.tar.xz
rc.lua: fixed floater placement
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.lua b/rc.lua
index 4c25e6d..7d118cf 100644
--- a/rc.lua
+++ b/rc.lua
@@ -679,7 +679,11 @@ client.add_signal("manage", function (c, startup)
-- Client placement
if not startup then
awful.client.setslave(c)
- awful.placement.no_offscreen(c)
+
+ if not c.size_hints.user_position
+ and not c.size_hints.program_position then
+ awful.placement.no_offscreen(c)
+ end
end
-- Honor size hints