Skip to content

Commit

Permalink
ALL: Added saveSetup() and restoreSetup(). Fixed / Improved watchdog …
Browse files Browse the repository at this point in the history
…(especially in Linux). Fixed / improved setPosition() method

LINUX: Added ewmhlib as separate module. Fixed watchdog (freezing randomly invoking screen_resources and get_output_info), fixed workarea crash (some apps/environments do not set it), improved to work almost fine in Manjaro/KDE, avoid crashing in Wayland for "fake" :1 display (though module won't likely work)
WIN32: Fixed dev.StateFlags returning weird values for multi-monitor. Fixed GetAwarenessFromDpiAwarenessContext not supported on Windows Server
MACOS: Replaced display-manager-lib by other alternatives which seem to work in several macOS versions. Added setScale() method (using a workaround). Added wakeup feature to turnOn() method
  • Loading branch information
Kalmat committed Apr 19, 2024
1 parent 868d2d8 commit 8875b51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_pymonctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ def changedCB(names: List[str], info: dict[str, pmc.ScreenValue]):
time.sleep(_TIMELAP)
print()

print("CHANGE ORIENTATION", "Current:", monitor.orientation*90, "Target:", pmc.Orientation.INVERTED*90)
orientation = monitor.orientation
print("CHANGE ORIENTATION", "Current:", orientation*90 if orientation is not None else None, "Target:", pmc.Orientation.INVERTED*90)
monitor.setOrientation(pmc.Orientation.INVERTED)
time.sleep(_TIMELAP*2)
print("RESTORE ORIENTATION", "Current:", monitor.orientation*90, "Target:", pmc.Orientation.NORMAL)
orientation = monitor.orientation
print("RESTORE ORIENTATION", "Current:", orientation*90 if orientation is not None else None, "Target:", pmc.Orientation.NORMAL)
monitor.setOrientation(pmc.Orientation.NORMAL)
time.sleep(_TIMELAP*2)
print()
Expand Down

0 comments on commit 8875b51

Please sign in to comment.