Skip to content

Commit

Permalink
ALL: Fixed x, y calculation in some setPosition() and arrangeMonitors…
Browse files Browse the repository at this point in the history
…() cases

MACOS: Fixed / Tested OK in multi-monitor setup
  • Loading branch information
Kalmat committed Sep 6, 2023
1 parent 282fa9b commit 355b758
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.5, 2023/09/02 -- ALL: Fixed x, y calculation in some setPosition() and arrangeMonitors() cases
0.5, 2023/09/06 -- ALL: Fixed x, y calculation in some setPosition() and arrangeMonitors() cases
MACOS: Fixed / Tested OK in multi-monitor setup
0.3, 2023/09/02 -- ALL: Fixed arrangeMonitors()
0.2, 2023/09/01 -- ALL: Added isSuspended property
Expand Down
Binary file modified dist/PyMonCtl-0.5-py3-none-any.whl
Binary file not shown.
3 changes: 2 additions & 1 deletion src/pymonctl/_pymonctl_macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,8 @@ def _getName(displayId: int, screen: Optional[AppKit.NSScreen] = None):
if not screen:
screen = AppKit.NSScreen.mainScreen()
try:
scrName = screen.localizedName() + "_" + str(displayId)
if screen is not None:
scrName = screen.localizedName() + "_" + str(displayId)
except:
# In older macOS, screen doesn't have localizedName() method
scrName = "Display" + "_" + str(displayId)
Expand Down

0 comments on commit 355b758

Please sign in to comment.