Revert "refactor: simplify the windowed flag" (#1581)
This reverts commit e01acf8edc.
Fixes https://github.com/KlipperScreen/KlipperScreen/issues/1564
This commit is contained in:
1 parent
e1aeaa6f23
commit
0aa2dcc2d2
3 files changed
+5
-4
No files matched your search
@@ -211,7 +211,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.get_resizable():
|
||||
if not self.screen.windowed:
|
||||
dialog.fullscreen()
|
||||
|
||||
if buttons:
|
||||
|
||||
@@ -114,7 +114,7 @@ class Prompt:
|
||||
scroll.add(self.scroll_box)
|
||||
|
||||
content = Gtk.Grid()
|
||||
if not self.screen.get_resizable():
|
||||
if not self.screen.windowed:
|
||||
content.attach(title, 0, 0, 1, 1)
|
||||
content.attach(close, 1, 0, 1, 1)
|
||||
content.attach(scroll, 0, 1, 2, 1)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user