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

[virt-tools-list] [PATCHv3 virt-viewer 12/12] kiosk: explicit resize window to fullscreen size



Allow to run the client in kiosk mode with window-manager-less
environment.

This was a conditional workaroud on win32. I am making it
non-conditional to make fullscreen work on non-wm environment. Hence
I don't see the need to refer explicitely to the bug workaround, since
it is no longer something that should be removed, even when bgo 652049
is fixed.
---
 src/virt-viewer-window.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index fbac103..0fcd53e 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -480,13 +480,10 @@ virt_viewer_window_move_to_monitor(VirtViewerWindow *self)
 
     gdk_screen_get_monitor_geometry(gdk_screen_get_default(), n, &mon);
     gtk_window_move(GTK_WINDOW(priv->window), mon.x, mon.y);
-#ifdef G_OS_WIN32
-    /* FIXME: 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),
                                 mon.width,
                                 mon.height);
-#endif
 }
 
 void
@@ -509,9 +506,7 @@ 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));
 
 }
-- 
1.8.3.rc1.49.g8d97506


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