Fwd: [spice-gtk PATCH] Single headed monitor updates should start at 0, 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Forwarded Message -----
From: sstutsma@xxxxxxxxxx
To: spice-devel@xxxxxxxxxxxxxxxxxxxxx
Cc: "Sandy Stutsman" <sstutsma@xxxxxxxxxx>
Sent: Wednesday, March 11, 2015 1:35:35 PM
Subject: [spice-gtk PATCH] Single headed monitor updates should start at 0,0

From: Sandy Stutsman <sstutsma@xxxxxxxxxx>

For Windows VMs, each monitor is driven by its own instance of the qxl
driver, so monitors have only one head.  With the addition of the
monitors_config message in the Windows Driver, it is now possible to
have a single headed monitor with a non zero position.  Even so, the
update_area call should be for the whole monitor extent.
---
 gtk/spice-widget.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index f5e8aab..8f3fd1a 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -297,7 +297,13 @@ static void update_monitor_area(SpiceDisplay *display)
         spice_main_update_display(d->main, get_display_id(display),
                                   c->x, c->y, c->width, c->height, FALSE);
 
-    update_area(display, c->x, c->y, c->width, c->height);
+
+    //If only one head on this monitor x,y should always be treated as zero
+    if (monitors->len == 1)
+        update_area(display, 0, 0, c->width, c->height);
+    else
+        update_area(display, c->x, c->y, c->width, c->height);
+
     g_clear_pointer(&monitors, g_array_unref);
     return;
 
-- 
2.1.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]