AdamWagner / stackline

Visualize yabai window stacks on macOS. Works with yabai & hammerspoon.
944 stars 47 forks source link

Indicator positions/clicks offset if menubar is not hidden #79

Closed AdamWagner closed 3 years ago

AdamWagner commented 3 years ago

@AdamWagner sorry for pinging you back, but i found the root cause of wrong indicator positions/clicks - it depends on menubar. If it is hidden in settings - everything works as expected. If visible - extra offset is added. Please check attached video

https://user-images.githubusercontent.com/2446638/107145775-86818c00-694c-11eb-877a-92ed337c023f.mp4

Originally posted by @Coobaha in https://github.com/AdamWagner/stackline/issues/37#issuecomment-774662497

AdamWagner commented 3 years ago

Fixed with less than a 1 line change to window.lua line 203

[-] self.screenFrame = self.screen:frame()    
[+] self.screenFrame = self.screen:fullFrame()