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:
parent
28381d2792
commit
cd7cb0e7e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue