From 5887bd39538afcceb2b05b4202772c19d0f14c2d Mon Sep 17 00:00:00 2001 From: Kalmat Date: Thu, 18 Apr 2024 21:15:25 +0200 Subject: [PATCH] ALL: Added saveSetup() and restoreSetup(). Fixed / Improved watchdog (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 (brightness only) Added setScale() method (using a workaround). Added wakeup feature to turnOn() method --- typings/objc.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/typings/objc.pyi b/typings/objc.pyi index 1344751..eb70d3b 100644 --- a/typings/objc.pyi +++ b/typings/objc.pyi @@ -7,6 +7,7 @@ class loadBundleFunctions(str): @overload def __new__(cls, object: object = ...) -> loadBundleFunctions: ... + @overload def __new__(cls, object: Buffer, encoding: str = ..., errors: str = ...) -> loadBundleFunctions: ... class loadBundleVariables(str): @@ -14,5 +15,6 @@ class loadBundleVariables(str): @overload def __new__(cls, object: object = ...) -> loadBundleVariables: ... + @overload def __new__(cls, object: Buffer, encoding: str = ..., errors: str = ...) -> loadBundleVariables: ...