Commit 41efff4
authored
fix: use CGMainDisplayID() instead of NSScreen.main for primary display detection (#21)
NSScreen.main returns the screen with keyboard focus (key window), not
the primary display with the menu bar. This caused items without an
explicit display to migrate to the wrong screen on display change
events. Use CGMainDisplayID() which always returns the menu bar display.1 parent ceb9c2f commit 41efff4
2 files changed
Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments