Blame SOURCES/0004-Enable-the-display-before-showing-the-window.patch

4a6991
From dc47ff3b6b31c8bdd49d5b301839fb0862bf7805 Mon Sep 17 00:00:00 2001
4a6991
From: Jonathon Jongsma <jjongsma@redhat.com>
4a6991
Date: Fri, 13 Dec 2013 10:15:17 -0600
4a6991
Subject: [PATCH] Enable the display before showing the window
4a6991
4a6991
This ensures that the display is enabled when it gets its first Allocate event
4a6991
(which causes a display reconfiguration).  If the display is not enabled at this
4a6991
point, it won't send down a new monitors_config message until the second
4a6991
allocation, which may result in the display being disabled until a window is
4a6991
resized.
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 193c431..1fa3982 100644
4a6991
--- a/src/virt-viewer-window.c
4a6991
+++ b/src/virt-viewer-window.c
4a6991
@@ -1261,11 +1261,11 @@ virt_viewer_window_set_display(VirtViewerWindow *self, VirtViewerDisplay *displa
4a6991
 void
4a6991
 virt_viewer_window_show(VirtViewerWindow *self)
4a6991
 {
4a6991
-    gtk_widget_show(self->priv->window);
4a6991
-
4a6991
     if (self->priv->display)
4a6991
         virt_viewer_display_set_enabled(self->priv->display, TRUE);
4a6991
 
4a6991
+    gtk_widget_show(self->priv->window);
4a6991
+
4a6991
     if (self->priv->desktop_resize_pending) {
4a6991
         virt_viewer_window_resize(self, FALSE);
4a6991
         self->priv->desktop_resize_pending = FALSE;