From 986db2349ec53ba8e6f15f0f8e9217e62537b083 Mon Sep 17 00:00:00 2001 From: Kalmat Date: Fri, 22 Mar 2024 13:32:01 +0100 Subject: [PATCH] 0.7, 2024/03/22 -- LINUX: (Really) Fixed position and size for GNOME (by using GTK_EXTENTS) --- src/pywinbox/ewmhlib/_ewmhlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pywinbox/ewmhlib/_ewmhlib.py b/src/pywinbox/ewmhlib/_ewmhlib.py index e5da3c5..2a3bc73 100644 --- a/src/pywinbox/ewmhlib/_ewmhlib.py +++ b/src/pywinbox/ewmhlib/_ewmhlib.py @@ -149,7 +149,7 @@ def _getRoots(updateDisplays: bool = False) -> List[Tuple[Xlib.display.Display, if updateDisplays or displaysCount > 1 or defaultDisplay.screen_count() > 1: if updateDisplays: display = Xlib.display.Display() - screen = display.screen() + screen: Struct = display.screen() rootsInfo = [(display, screen, screen.root)] displays: List[Xlib.display.Display] = _getDisplays() else: @@ -157,7 +157,7 @@ def _getRoots(updateDisplays: bool = False) -> List[Tuple[Xlib.display.Display, for display in displays: for i in range(display.screen_count()): try: - screen: Struct = display.screen(i) + screen = display.screen(i) root: XWindow = screen.root if root.id != defaultRoot.id: rootsInfo.append((display, screen, root))