Revert "refactor: simplify the windowed flag" (#1581)

This reverts commit e01acf8edc.

Fixes https://github.com/KlipperScreen/KlipperScreen/issues/1564
This commit is contained in:
Andrew Bruce
2025-05-25 13:50:27 +01:00
committed by GitHub
parent e1aeaa6f23
commit 0aa2dcc2d2
3 changed files with 5 additions and 4 deletions

View File

@@ -70,10 +70,10 @@ class KlipperScreen(Gtk.Window):
_ws = None
reinit_count = 0
max_retries = 4
initialized = False
initializing = False
initialized = initializing = False
popup_timeout = None
wayland = False
windowed = False
notification_log = []
prompt = None
tempstore_timeout = None
@@ -134,6 +134,7 @@ class KlipperScreen(Gtk.Window):
if mon_n > 0:
logging.error("Monitor selection is only supported for fullscreen")
self.set_resizable(True)
self.windowed = True
else:
self.width = monitor.get_geometry().width
self.height = monitor.get_geometry().height