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

[virt-tools-list] [PATCH virt-viewer] win32: maximize when leaving fullscreen the first time



On windows, the client window may end up with a non-visible toolbar,
and overlapping the windows statusbar. To workaround this, let's
maximize the client the first time leaving fullscreen.

https://bugzilla.redhat.com/show_bug.cgi?id=916810
---
 src/virt-viewer-window.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index c73de25..a87f994 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -520,7 +520,13 @@ virt_viewer_window_leave_fullscreen(VirtViewerWindow *self)
                           priv->before_fullscreen.width,
                           priv->before_fullscreen.height);
     } else {
+#ifdef G_OS_WIN32
+	/* win32 window manager isn't smart enough to place
+         * the window so that titlebar would be visible */
+        gtk_window_maximize(GTK_WINDOW(priv->window));
+#else
         virt_viewer_display_queue_resize(priv->display);
+#endif
     }
 }
 
-- 
1.8.1.1.439.g50a6b54


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