summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2014-10-14 16:47:03 +0200
committerFabiano FidĂȘncio <fidencio@redhat.com>2014-10-15 23:48:50 +0200
commit910ee34248d98bd9f328c3f3e92120d49f55dedc (patch)
tree69979e620c292ad718fb715d7f61da740096b931 /src
parent3eaecbb3a4d069cde18cb0ad1e93735e0b73ef72 (diff)
Force display_show_hint() when the display is set
Since a window is not created at startup for each display, the first display(s) set when the application is opened will never receive and treat the "notify::show-hint" signal on VirtViewerWindow, once the callback is only set when the display is set to the specific window. It causes problems like the "Send Key" menu not activated till an extra display is added. To avoid this problem, let's force a call to display_show_hint() everytime a display is set. Resolves: rhbz#1152468 https://bugzilla.redhat.com/show_bug.cgi?id=1152468
Diffstat (limited to 'src')
-rw-r--r--src/virt-viewer-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 64cf865..df4a200 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -1327,6 +1327,9 @@ virt_viewer_window_set_display(VirtViewerWindow *self, VirtViewerDisplay *displa
G_CALLBACK(virt_viewer_window_desktop_resize), self, 0);
virt_viewer_signal_connect_object(display, "notify::show-hint",
G_CALLBACK(display_show_hint), self, 0);
+
+ display_show_hint(display, NULL, self);
+
if (virt_viewer_display_get_enabled(display))
virt_viewer_window_desktop_resize(display, self);
}