Blame SOURCES/0022-Set-Spice-display-to-fullscreen-if-owning-window-is-.patch

4a6991
From dbd70fcab24cdb32d3849349d133b9803511281a Mon Sep 17 00:00:00 2001
4a6991
From: Jonathon Jongsma <jjongsma@redhat.com>
4a6991
Date: Fri, 18 Oct 2013 11:18:37 -0500
4a6991
Subject: [PATCH] Set Spice display to fullscreen if owning window is pending
4a6991
 fullscreen
4a6991
4a6991
When you call virt_viewer_window_enter_fullscreen() on a hidden window, it
4a6991
didn't actually change its fullscreen state.  Instead, it sets up a map-event
4a6991
handler to enter fullscreen after it is shown. When _set_display() is called on
4a6991
a window that is pending fullscreen status, it initially sets the fullscreen
4a6991
state of the display to FALSE, which can cause an unwanted resize to be sent
4a6991
down to the guest. This patch changes the behavior to set its fullscreen state
4a6991
to TRUE even before the window is shown.
4a6991
4a6991
(cherry picked from commit 34bbb275a6d2e10d69fe5eb919d0351185c1b5f0)
4a6991
https://bugzilla.redhat.com/show_bug.cgi?id=920988
4a6991
---
4a6991
 src/virt-viewer-window.c | 4 ++--
4a6991
 1 file changed, 2 insertions(+), 2 deletions(-)
4a6991
4a6991
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
4a6991
index 2a91fba..2bb5986 100644
4a6991
--- a/src/virt-viewer-window.c
4a6991
+++ b/src/virt-viewer-window.c
4a6991
@@ -516,6 +516,7 @@ mapped(GtkWidget *widget, GdkEvent *event G_GNUC_UNUSED,
4a6991
        VirtViewerWindow *self)
4a6991
 {
4a6991
     g_signal_handlers_disconnect_by_func(widget, mapped, self);
4a6991
+    self->priv->fullscreen = FALSE;
4a6991
     virt_viewer_window_enter_fullscreen(self, self->priv->fullscreen_monitor);
4a6991
     return FALSE;
4a6991
 }
4a6991
@@ -531,14 +532,13 @@ virt_viewer_window_enter_fullscreen(VirtViewerWindow *self, gint monitor)
4a6991
         return;
4a6991
 
4a6991
     priv->fullscreen_monitor = monitor;
4a6991
+    priv->fullscreen = TRUE;
4a6991
 
4a6991
     if (!gtk_widget_get_mapped(priv->window)) {
4a6991
         g_signal_connect(priv->window, "map-event", G_CALLBACK(mapped), self);
4a6991
         return;
4a6991
     }
4a6991
 
4a6991
-    priv->fullscreen = TRUE;
4a6991
-
4a6991
     gtk_check_menu_item_set_active(check, TRUE);
4a6991
     gtk_widget_hide(menu);
4a6991
     gtk_widget_show(priv->toolbar);