summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-27 12:57:09 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-27 12:57:09 +0000
commitdd7c556072978822c1110346354acfa3362b012e (patch)
treee2276551f151708ee9a85bdd437507db97803e97
parent1085e6c93288de2275791ce9c585142870dc0877 (diff)
intel-virtual-output: Workaround mutter always using the same timestamp
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tools/virtual.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index dd938a0e..e522264a 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -931,7 +931,8 @@ static int context_update(struct context *ctx)
return 0;
DBG(("%s timestamp %ld (last %ld)\n", DisplayString(dpy), res->timestamp, ctx->display->timestamp));
- if (res->timestamp == ctx->display->timestamp) {
+ if (res->timestamp == ctx->display->timestamp &&
+ res->timestamp != res->configTimestamp) { /* mutter be damned */
XRRFreeScreenResources(res);
return 0;
}