Browse Source

Bugfixes with Python 3.8

sisyphus
JezerM 3 years ago
parent
commit
41edb77578
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 1
      web-greeter/setup.py
  2. 5
      web-greeter/utils/screensaver.py

1
web-greeter/setup.py

@ -23,6 +23,7 @@ setup(
options = {"build_exe": {
"build_exe": "dist",
"packages": ["gi", "Xlib"],
"includes": ["gi"],
"silent_level": 0,
}},
)

5
web-greeter/utils/screensaver.py

@ -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
@ -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

Loading…
Cancel
Save