fix dialogs sometimes getting larger than desired

This commit is contained in:
Alfredo Monclus committed 2024-06-03 17:24:46 -03:00
1 parent e112786c02
commit 792fcb80c5
1 file changed
+1
+1
View File
@@ -208,6 +208,7 @@ class KlippyGtk:
def Dialog(self, title, buttons, content, callback=None, *args):
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:
dialog.fullscreen()