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:
Cole Robinson 2016-12-13 13:27:06 -05:00
parent 617b92710f
commit 107aa2b134
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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")