[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH virt-viewer 4/4] window: keep window size when leaving auto-conf fullscreen



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]