Merge pull request #11 from Pablo1107/fix-no-titlebar-maximize-workarea

Change no titlebar maximize to use workarea instead of screen geometry to maximize window
This commit is contained in:
mut-ex 2020-09-03 23:29:53 -04:00 committed by GitHub
commit 9fa1a15a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -800,14 +800,14 @@ function _private.add_window_decorations(c)
c:connect_signal(
"property::maximized", function()
if c.maximized then
local curr_screen_geo = client.focus.screen.geometry
local curr_screen_workarea = client.focus.screen.workarea
awful.titlebar.hide(c)
c.shape = nil
c:geometry{
x = 0,
y = 0,
width = curr_screen_geo.width,
height = curr_screen_geo.height,
x = curr_screen_workarea.x,
y = curr_screen_workarea.y,
width = curr_screen_workarea.width,
height = curr_screen_workarea.height,
}
else
awful.titlebar.show(c)