Skip to content

Commit

Permalink
0.7, 2024/03/22 -- LINUX: (Really) Fixed position and size for GNOME …
Browse files Browse the repository at this point in the history
…(by using GTK_EXTENTS)
  • Loading branch information
Kalmat committed Mar 22, 2024
1 parent ca35070 commit 986db23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pywinbox/ewmhlib/_ewmhlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ 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:
displays = getDisplays()
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))
Expand Down

0 comments on commit 986db23

Please sign in to comment.