diff options
-rw-r--r-- | tools/virtual.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index b45f6fdc..c363a3e4 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -62,6 +62,8 @@ #define DBG(x) #endif +#define FORCE_FULL_REDRAW 0 + struct display { Display *dpy; struct clone *clone; @@ -1329,6 +1331,13 @@ static int clone_paint(struct clone *c) if (c->dst.serial > LastKnownRequestProcessed(c->dst.dpy)) return EAGAIN; + if (FORCE_FULL_REDRAW) { + c->damaged.x1 = c->src.x; + c->damaged.y1 = c->src.y; + c->damaged.x2 = c->src.x + c->width; + c->damaged.y2 = c->src.y + c->height; + } + clip.x = c->damaged.x1; clip.y = c->damaged.y1; clip.width = c->damaged.x2 - c->damaged.x1; |