From 66fa8eab2db9b8a007d0190c0ce765820262ee4d Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 5 Jan 2025 16:48:19 -0600 Subject: fix floating wins and disable max wins --- lib/manage.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3