summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-05 19:43:25 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-06 06:59:20 +0100
commit77507909a18b687698f6d4e436ef66d942308fc3 (patch)
tree010407b9275e3a60480935f47761d4906a1833d5 /tools
parent56126d00503fd9bc6fe30781ecddb2fb67de817b (diff)
intel-virtual-output: Grab the server whilst cleanging up the local output
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 0966590c..a74b7ce2 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -572,6 +572,9 @@ static int clone_update_modes__randr(struct clone *clone)
}
}
+ /* Create matching modes for the real output on the virtual */
+ XGrabServer(clone->src.dpy);
+
/* Clear all current UserModes on the output, including any active ones */
if (to_info->crtc) {
DBG(("%s(%s-%s): disabling active CRTC\n", __func__,
@@ -586,8 +589,6 @@ static int clone_update_modes__randr(struct clone *clone)
clone->src.rr_crtc = 0;
- /* Create matching modes for the real output on the virtual */
- XGrabServer(clone->src.dpy);
for (i = 0; i < from_info->nmode; i++) {
XRRModeInfo *mode, *old;
RRMode id;