summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-02-12 15:13:42 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-02-12 15:13:42 +0000
commit94e5ca3d5ab33c8e9b86a4f60c712da72df15b3d (patch)
tree311b50089af5a72e48326d2e4354f3076663a678 /tools
parentd84940cc9d297df00477c838b4f53883c19a1da4 (diff)
intel-virtual-output: Always requery modes after OutputNotify
References: https://bugs.freedesktop.org/show_bug.cgi?id=74800 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index c6b78960..5952186f 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -454,7 +454,7 @@ static int clone_update_modes__randr(struct clone *clone)
assert(clone->dst.rr_output);
assert(clone->dst.display->rr_event);
- from_res = XRRGetScreenResources(clone->dst.dpy, clone->dst.window);
+ from_res = _XRRGetScreenResourcesCurrent(clone->dst.dpy, clone->dst.window);
if (from_res == NULL)
goto err;
@@ -462,11 +462,10 @@ static int clone_update_modes__randr(struct clone *clone)
if (from_info == NULL)
goto err;
- DBG(("%s(%s-%s): timestamp %ld (last %ld)\n", __func__,
+ DBG(("%s(%s-%s <- %s-%s): timestamp %ld (last %ld)\n", __func__,
DisplayString(clone->src.dpy), clone->src.name,
- from_info->timestamp, clone->timestamp));
- if (from_info->timestamp == clone->timestamp)
- goto err;
+ DisplayString(clone->dst.dpy), clone->dst.name,
+ from_info->timestamp, clone->timestamp));
to_res = _XRRGetScreenResourcesCurrent(clone->src.dpy, clone->src.window);
if (to_res == NULL)