fix(permissions: geometry): allow geometry change for non-floating clients if it was requested by awesome's own fullscreen and maximize handlers (fixes: #3844, #3834) (#3845)

This commit is contained in:
Actionless Loveless 2023-08-30 13:25:59 +02:00 committed by GitHub
parent 28381d2792
commit cd7cb0e7e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -367,13 +367,18 @@ function permissions.geometry(c, context, hints)
local layout = c.screen.selected_tag and c.screen.selected_tag.layout or nil
context = context or ""
-- Setting the geometry will not work unless the client is floating.
if (not c.floating) and (layout ~= asuit.floating) then
if (
(context ~= "fullscreen")
and (context ~= "maximized")
and (not c.floating)
and (layout ~= asuit.floating)
) then
return
end
context = context or ""
local original_context = context
-- Now, map it to something useful