manager: Fix window size tracking on wayland (bug 1375175)
The method we were using is a common implementation bug, explained here: https://wiki.gnome.org/HowDoI/SaveWindowState https://bugzilla.redhat.com/show_bug.cgi?id=1375175
This commit is contained in:
parent
617b92710f
commit
107aa2b134
|
@ -1016,10 +1016,10 @@ class vmmDetails(vmmGObjectUI):
|
|||
# Window state listeners #
|
||||
##########################
|
||||
|
||||
def window_resized(self, ignore, event):
|
||||
def window_resized(self, ignore, ignore2):
|
||||
if not self.is_visible():
|
||||
return
|
||||
self._window_size = (event.width, event.height)
|
||||
self._window_size = self.topwin.get_size()
|
||||
|
||||
def popup_addhw_menu(self, widget, event):
|
||||
ignore = widget
|
||||
|
|
|
@ -458,10 +458,10 @@ class vmmManager(vmmGObjectUI):
|
|||
# Action listeners #
|
||||
####################
|
||||
|
||||
def window_resized(self, ignore, event):
|
||||
def window_resized(self, ignore, ignore2):
|
||||
if not self.is_visible():
|
||||
return
|
||||
self._window_size = (event.width, event.height)
|
||||
self._window_size = self.topwin.get_size()
|
||||
|
||||
def exit_app(self, src_ignore=None, src2_ignore=None):
|
||||
self.emit("action-exit-app")
|
||||
|
|
Loading…
Reference in New Issue