diff --git a/ks_includes/KlippyGtk.py b/ks_includes/KlippyGtk.py index f6df2d13..9da1e66e 100644 --- a/ks_includes/KlippyGtk.py +++ b/ks_includes/KlippyGtk.py @@ -210,7 +210,7 @@ class KlippyGtk: dialog = Gtk.Dialog(title=title, modal=True, transient_for=self.screen, default_width=self.width, default_height=self.height) dialog.set_size_request(self.width, self.height) - if not self.screen.windowed: + if not self.screen.get_resizable(): dialog.fullscreen() if buttons: diff --git a/ks_includes/widgets/prompts.py b/ks_includes/widgets/prompts.py index 9d4daf08..752b966a 100644 --- a/ks_includes/widgets/prompts.py +++ b/ks_includes/widgets/prompts.py @@ -113,7 +113,7 @@ class Prompt: scroll.add(self.scroll_box) content = Gtk.Grid() - if not self.screen.windowed: + if not self.screen.get_resizable(): content.attach(title, 0, 0, 1, 1) content.attach(close, 1, 0, 1, 1) content.attach(scroll, 0, 1, 2, 1) diff --git a/screen.py b/screen.py index f8af7d6b..659cd73d 100755 --- a/screen.py +++ b/screen.py @@ -62,16 +62,17 @@ class KlipperScreen(Gtk.Window): panels = {} popup_message = None screensaver = None - printers = printer = None + printers = None + printer = None updating = False _ws = None screensaver_timeout = None reinit_count = 0 max_retries = 4 - initialized = initializing = False + initialized = False + initializing = False popup_timeout = None wayland = False - windowed = False notification_log = [] prompt = None tempstore_timeout = None @@ -131,7 +132,6 @@ 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