display-vnc: fix zoom-level set by command line

Setting the zoom-level using the command line option '--zoom' is not
working for vnc guests. This problem can be solved by emitting
the "display-desktop-resize" signal when vnc is initialized.

https://bugzilla.redhat.com/show_bug.cgi?id=1170071
This commit is contained in:
Pavel Grunt 2014-12-10 14:07:03 +01:00 committed by Fabiano Fidêncio
parent 824c4b9c0d
commit 68148e1bd1

View File

@ -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