Skip to content

Commit

Permalink
fix(permissions: geometry): allow geometry change for non-floating cl…
Browse files Browse the repository at this point in the history
…ients if it was requested by awesome's own fullscreen and maximize handlers (fixes: awesomeWM#3844, awesomeWM#3834)
  • Loading branch information
actionless committed Aug 25, 2023
1 parent 28381d2 commit 73fad77
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/awful/permissions/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73fad77

Please sign in to comment.