[virt-tools-list] [PATCH virt-viewer 4/4] window: keep window size when leaving auto-conf fullscreen
Marc-André Lureau
marcandre.lureau at gmail.com
Mon Mar 25 21:26:56 UTC 2013
https://bugzilla.redhat.com/show_bug.cgi?id=916810
---
src/virt-viewer-window.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 1cd0eee..b976715 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -512,7 +512,9 @@ virt_viewer_window_leave_fullscreen(VirtViewerWindow *self)
#endif
gtk_window_unfullscreen(GTK_WINDOW(priv->window));
- if (priv->before_saved) {
+ if (virt_viewer_app_get_fullscreen_auto_conf(priv->app)) {
+ virt_viewer_display_queue_resize(priv->display);
+ } else if (priv->before_saved) {
gtk_window_move(GTK_WINDOW(priv->window),
priv->before_fullscreen.x,
priv->before_fullscreen.y);
--
1.8.1.1.439.g50a6b54
More information about the virt-tools-list
mailing list