Skip to content

Commit

Permalink
ALL: Added PyMonCtl module to improve multi-monitor capabilities, add…
Browse files Browse the repository at this point in the history
…ed setParent() method. Reorganized to avoid IDEs showing external and / or private elements

WINDOWS: Simplified alwaysOnBottom(), found a smarter way to refresh window after bringing it back with sendBehind()
MACOS: Tested in multi-monitor setups (based on PyWinBox and PyMonCtl features)MACOSNSWINDOW: Added experimental acceptInput() method (not possible in AppleScript version)
  • Loading branch information
Kalmat committed Aug 28, 2023
1 parent bdf7f6f commit c324963
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified dist/PyWinCtl-dev0.1-py3-none-any.whl
Binary file not shown.
5 changes: 4 additions & 1 deletion src/pywinctl/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,10 @@ def restart(

def _findMonitorName(x: int, y: int):
monitors = pmc.findMonitor(x, y)
return [monitor.name for monitor in monitors]
if monitors:
return [monitor.name for monitor in monitors]
else:
return []


def getAllScreens():
Expand Down

0 comments on commit c324963

Please sign in to comment.