stackline
stackline copied to clipboard
Stackline icon not clickable with my multi-monitor layout
Red arrow is the click point.
Purple border is the icon area.
Blue Border shows that actually I put my MacBook in front of my monitor and MacBook own the system topbar so I found the coordinate of the click is kind of negative value. So the hittest might fail because of this.
If I move the system top bar to the external monitor, then the icon could be clicked but still offset (less accuracy of icon frame and click point)
macOS: bigSur 11.0.1 (20B29) version:
commit 8c1533ea71e9af3315edb889a6a44e7cc5723f16 (HEAD -> master, origin/master, origin/HEAD) Author: Jerred Shepherd [email protected] Date: Sat Dec 12 13:25:06 2020 -0800
Fix link (#54)
@snakewa I think that this is fixed in https://github.com/AdamWagner/stackline/pull/81
(the offset issue was fixed in an earlier commit)
Apologies for the long wait. Would still be great to know if this this fix works for you ;-)
I added a comment explaining the fix here:
-- NOTE: Window indicator frame coordinates are relative to the window's screen.
-- So, if click point has negative X or Y vals, then convert its coordinates
-- to relative to the clicked screen before comparing to window indicator frames.
I still encounter a similar issue with a two monitor layout (clicking the icon switch the app in the wrong display)