summaryrefslogtreecommitdiff
path: root/lib/manage.lua
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-01-05 16:48:19 -0600
committerTim Keller <tjkeller.xyz>2025-01-05 16:48:19 -0600
commit66fa8eab2db9b8a007d0190c0ce765820262ee4d (patch)
tree589effdfb2acc60273ef0dd32eea96ef097ec884 /lib/manage.lua
parent1ad1e4120700148359b271566ca70aed7ae79321 (diff)
downloadawesome-66fa8eab2db9b8a007d0190c0ce765820262ee4d.tar.xz
awesome-66fa8eab2db9b8a007d0190c0ce765820262ee4d.zip
fix floating wins and disable max wins
Diffstat (limited to 'lib/manage.lua')
-rw-r--r--lib/manage.lua14
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)