summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index e522264a..f0915a4d 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -1044,8 +1044,10 @@ static int context_update(struct context *ctx)
y2 = v;
}
+ x2 -= x1;
+ y2 -= y1;
DBG(("%s fb bounds (%d, %d)x(%d, %d)\n", DisplayString(display->dpy),
- x1, y1, x2-x1, y2-y1));
+ x1, y1, x2, y2));
res = _XRRGetScreenResourcesCurrent(display->dpy, display->root);
if (res == NULL)