[virt-tools-list] [PATCH virt-viewer 2/2] window: keep display size when leaving fullscreen for first time
Marc-André Lureau
marcandre.lureau at gmail.com
Tue Mar 26 11:37:36 UTC 2013
If the application was started in fullscreen, window geometry has not
been saved, since the window was not realized. We can unfullscreen and
restore 1:1 window to match guest display size with
virt_viewer_display_queue_resize()
https://bugzilla.redhat.com/show_bug.cgi?id=916810
---
src/virt-viewer-window.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 9e064c7..c73de25 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -519,6 +519,8 @@ virt_viewer_window_leave_fullscreen(VirtViewerWindow *self)
gtk_window_resize(GTK_WINDOW(priv->window),
priv->before_fullscreen.width,
priv->before_fullscreen.height);
+ } else {
+ virt_viewer_display_queue_resize(priv->display);
}
}
--
1.8.1.1.439.g50a6b54
More information about the virt-tools-list
mailing list