Skip to content

Commit

Permalink
Bugfixes with Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
JezerM committed Sep 15, 2021
1 parent f14ecf0 commit 41edb77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions web-greeter/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
options = {"build_exe": {
"build_exe": "dist",
"packages": ["gi", "Xlib"],
"includes": ["gi"],
"silent_level": 0,
}},
)
5 changes: 3 additions & 2 deletions web-greeter/utils/screensaver.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from logger import logger
from Xlib.display import Display

saved_data: dict[str, int]
saved_data: dict = {}
saved = False
available = False

display = None
display: Display

def init_display():
global display, available
Expand All @@ -20,6 +20,7 @@ def set_screensaver(timeout: int):
if saved or not available:
return
display.sync()
display.sync()
data: dict[str, int] = display.get_screen_saver()._data or {}
saved_data = data
saved = True
Expand Down

0 comments on commit 41edb77

Please sign in to comment.