[virt-tools-list] [PATCH virt-viewer] win32: maximize when leaving fullscreen the first time
Marc-André Lureau
marcandre.lureau at gmail.com
Tue Apr 2 11:54:05 UTC 2013
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
More information about the virt-tools-list
mailing list