Blame SOURCES/0079-Force-display_show_hint-when-the-display-is-set.patch

4ab194
From 9869dc23a842efa97fa9dcf71a13dfa33e1accc1 Mon Sep 17 00:00:00 2001
4ab194
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
4ab194
Date: Tue, 14 Oct 2014 16:47:03 +0200
4ab194
Subject: [PATCH] Force display_show_hint() when the display is set
4ab194
4ab194
Since a window is not created at startup for each display, the first
4ab194
display(s) set when the application is opened will never receive and
4ab194
treat the "notify::show-hint" signal on VirtViewerWindow, once the
4ab194
callback is only set when the display is set to the specific window.
4ab194
It causes problems like the "Send Key" menu not activated till an extra
4ab194
display is added. To avoid this problem, let's force a call to
4ab194
display_show_hint() everytime a display is set.
4ab194
4ab194
Resolves: rhbz#1152468
4ab194
https://bugzilla.redhat.com/show_bug.cgi?id=1152468
4ab194
(cherry picked from commit 910ee34248d98bd9f328c3f3e92120d49f55dedc)
4ab194
---
4ab194
 src/virt-viewer-window.c | 3 +++
4ab194
 1 file changed, 3 insertions(+)
4ab194
4ab194
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
4ab194
index 7182c2f..4cda1e0 100644
4ab194
--- a/src/virt-viewer-window.c
4ab194
+++ b/src/virt-viewer-window.c
4ab194
@@ -1327,6 +1327,9 @@ virt_viewer_window_set_display(VirtViewerWindow *self, VirtViewerDisplay *displa
4ab194
                                           G_CALLBACK(virt_viewer_window_desktop_resize), self, 0);
4ab194
         virt_viewer_signal_connect_object(display, "notify::show-hint",
4ab194
                                           G_CALLBACK(display_show_hint), self, 0);
4ab194
+
4ab194
+        display_show_hint(display, NULL, self);
4ab194
+
4ab194
         if (virt_viewer_display_get_enabled(display))
4ab194
             virt_viewer_window_desktop_resize(display, self);
4ab194
     }