[virt-tools-list] [PATCH virt-viewer v4 2/3] session-spice: Set fullscreen displays according to monitor-mapping

Pavel Grunt pgrunt at redhat.com
Mon May 4 15:20:17 UTC 2015


It is necessary to follow the monitor mapping, otherwise a display
can get dimensions which belongs to other than desired monitor.

Related: rhbz#1212802
---
 src/virt-viewer-session-spice.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index b69faa6..c1333dd 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -866,7 +866,7 @@ virt_viewer_session_spice_fullscreen_auto_conf(VirtViewerSessionSpice *self)
     displays = g_new0(GdkRectangle, ndisplays);
 
     for (i = 0, l = initial_displays; l != NULL; l = l->next, i++) {
-        GdkRectangle* rect = &displays[i];
+        GdkRectangle* rect = &displays[GPOINTER_TO_INT(l->data)];
         gint j = virt_viewer_app_get_initial_monitor_for_display(app, GPOINTER_TO_INT(l->data));
         if (j == -1)
             continue;
-- 
2.3.6




More information about the virt-tools-list mailing list