[virt-tools-list] [PATCH virt-viewer 2/3] app: Compute monitor mapping only in fullscreen

Pavel Grunt pgrunt at redhat.com
Mon Feb 15 07:18:54 UTC 2016


---
 src/virt-viewer-app.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index d4ce06a..19cc0a0 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -481,6 +481,10 @@ void virt_viewer_app_set_uuid_string(VirtViewerApp *self, const gchar *uuid_stri
 
     g_free(self->priv->uuid);
     self->priv->uuid = g_strdup(uuid_string);
+
+    if (!virt_viewer_app_get_fullscreen(self)) /* no need to get mapping */
+        return;
+
     mapping = virt_viewer_app_get_monitor_mapping_for_section(self, uuid_string);
     if (!mapping) {
         g_debug("No guest-specific fullscreen config, using fallback");
-- 
2.5.0




More information about the virt-tools-list mailing list