From 62c6446a9fe9554ca8b8b237ea1a23c822e9fd3d Mon Sep 17 00:00:00 2001 From: Abhijith V Mohan Date: Thu, 22 Jul 2021 14:42:27 +0530 Subject: [PATCH] Fix height calculation including menu bar --- Spoons/WinWin.spoon/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Spoons/WinWin.spoon/init.lua b/Spoons/WinWin.spoon/init.lua index ef7204cc..69f3ec66 100644 --- a/Spoons/WinWin.spoon/init.lua +++ b/Spoons/WinWin.spoon/init.lua @@ -32,7 +32,7 @@ function obj:stepMove(direction) local cwin = hs.window.focusedWindow() if cwin then local cscreen = cwin:screen() - local cres = cscreen:fullFrame() + local cres = cscreen:frame() local stepw = cres.w/obj.gridparts local steph = cres.h/obj.gridparts local wtopleft = cwin:topLeft() @@ -60,7 +60,7 @@ function obj:stepResize(direction) local cwin = hs.window.focusedWindow() if cwin then local cscreen = cwin:screen() - local cres = cscreen:fullFrame() + local cres = cscreen:frame() local stepw = cres.w/obj.gridparts local steph = cres.h/obj.gridparts local wsize = cwin:size() @@ -132,7 +132,7 @@ function obj:moveAndResize(option) local cwin = hs.window.focusedWindow() if cwin then local cscreen = cwin:screen() - local cres = cscreen:fullFrame() + local cres = cscreen:frame() local stepw = cres.w/obj.gridparts local steph = cres.h/obj.gridparts local wf = cwin:frame() @@ -265,7 +265,7 @@ function obj:centerCursor() local cwin = hs.window.focusedWindow() local wf = cwin:frame() local cscreen = cwin:screen() - local cres = cscreen:fullFrame() + local cres = cscreen:frame() if cwin then -- Center the cursor one the focused window hs.mouse.setAbsolutePosition({x=wf.x+wf.w/2, y=wf.y+wf.h/2})