summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandy Stutsman <sstutsma@redhat.com>2015-06-24 14:46:59 -0400
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-07-28 22:11:47 +0200
commit8b0cd321d5a4d08ccba5845c5f2206e6f8032c1d (patch)
treef23adeb96b007fb06e6a68bb47f073ffee5ab04a
parentbf69423ffc0294bd782e110315169bd18edaa548 (diff)
Handle single headed monitors that have a non-zero x, y config
Each monitor on a Windows guest is represented as a separate, single-headed device with its own framebuffer. When there are multiple monitors, all monitors but one will have a non-zero xy config position. But even in these cases the whole area (frame-buffer) of each monitor should be updated. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1202419
-rw-r--r--src/spice-widget.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/spice-widget.c b/src/spice-widget.c
index 59f9792..3ec2e65 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -293,7 +293,12 @@ static void update_monitor_area(SpiceDisplay *display)
goto whole;
}
- update_area(display, c->x, c->y, c->width, c->height);
+ /* If only one head on this monitor, update the whole area */
+ 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;