diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-07-19 21:04:32 +0200 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2011-08-04 13:31:08 +0100 |
commit | 80aaff91f9309f2da8a0aa3723b53a493650181e (patch) | |
tree | ef8309d0305cdc8b6ef495d42a760f563d89f262 /src | |
parent | 92672aee3bdbe3d4e5b084881f88f3ba5331d38e (diff) |
Fix fullscreen should hide taskbar on Windows
Diffstat (limited to 'src')
-rw-r--r-- | src/virt-viewer-window.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c index f80947e..6c32a15 100644 --- a/src/virt-viewer-window.c +++ b/src/virt-viewer-window.c @@ -445,6 +445,9 @@ virt_viewer_window_leave_fullscreen(VirtViewerWindow *self) ViewAutoDrawer_SetActive(VIEW_AUTODRAWER(priv->layout), FALSE); gtk_widget_show(menu); gtk_widget_hide(priv->toolbar); +#ifdef G_OS_WIN32 + gtk_widget_set_size_request(GTK_WIDGET(priv->window), -1, -1); +#endif gtk_window_unfullscreen(GTK_WINDOW(priv->window)); if (priv->before_saved) { @@ -488,6 +491,13 @@ virt_viewer_window_enter_fullscreen(VirtViewerWindow *self, gboolean move, gint gtk_window_move(GTK_WINDOW(priv->window), x, y); gtk_window_fullscreen(GTK_WINDOW(priv->window)); +#ifdef G_OS_WIN32 + /* on windows, fullscreen doesn't always hide the taskbar + See https://bugzilla.gnome.org/show_bug.cgi?id=652049 */ + gtk_widget_set_size_request(GTK_WIDGET(priv->window), + gdk_screen_width(), + gdk_screen_height()); +#endif } #define MAX_KEY_COMBO 3 |