[virt-tools-list] [PATCH virt-viewer] display-vnc: set correct window size when vnc is initialized

Pavel Grunt pgrunt at redhat.com
Wed Dec 10 09:39:28 UTC 2014


The display is shrinked when connecting to a vnc guest. Also
the "zoom" option is not working for vnc guests.
This problem can be solved by emitting "display-desktop-resize"
signal when vnc is initialized.

https://bugzilla.redhat.com/show_bug.cgi?id=1170071
---
 src/virt-viewer-display-vnc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/virt-viewer-display-vnc.c b/src/virt-viewer-display-vnc.c
index 1f7c11b..6605b1b 100644
--- a/src/virt-viewer-display-vnc.c
+++ b/src/virt-viewer-display-vnc.c
@@ -118,6 +118,7 @@ virt_viewer_display_vnc_initialized(VncDisplay *vnc G_GNUC_UNUSED,
 {
     virt_viewer_display_set_show_hint(display,
                                       VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, TRUE);
+    g_signal_emit_by_name(display, "display-desktop-resize");
 }
 
 static void
-- 
1.9.3




More information about the virt-tools-list mailing list