[virt-tools-list] [PATCH virt-viewer] Initialize fullscreen display map to fallback

Jonathon Jongsma jjongsma at redhat.com
Thu Sep 25 19:49:24 UTC 2014


If uuid was never set, we never checked the 'fallback' monitor map.
Initializing the monitor map to the fallback value at startup solves
this issue. This allows fallback mode to work with older servers that
don't send the UUID.
---
 src/virt-viewer-app.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 063a358..d5a101e 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1758,6 +1758,7 @@ virt_viewer_app_init (VirtViewerApp *self)
         opt_zoom = 100;
     }
 
+    self->priv->initial_display_map = virt_viewer_app_get_monitor_mapping_for_section(self, "fallback");
     self->priv->verbose = opt_verbose;
     self->priv->quit_on_disconnect = opt_kiosk ? opt_kiosk_quit : TRUE;
     g_signal_connect(self, "notify::guest-name", G_CALLBACK(title_maybe_changed), NULL);
-- 
1.9.3




More information about the virt-tools-list mailing list