diff options
Diffstat (limited to 'lib/manage.lua')
-rw-r--r-- | lib/manage.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/manage.lua b/lib/manage.lua index 5b1bd40..fb7cc91 100644 --- a/lib/manage.lua +++ b/lib/manage.lua @@ -8,8 +8,20 @@ client.connect_signal("manage", function (c) awful.client.setslave(c) end + -- Prevent clients from being unreachable after screen count changes. 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) + +-- Floating clients should always be on top +client.connect_signal("property::floating", function(c) + if not c.fullscreen then + c.ontop = c.floating + end +end) + +-- Disable maximized clients +client.connect_signal("property::maximized", function(c) + c.maximized = false +end) |