summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common_drm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common_drm.c b/src/common_drm.c
index 19110d1..263301e 100644
--- a/src/common_drm.c
+++ b/src/common_drm.c
@@ -1329,6 +1329,10 @@ xf86CrtcPtr common_drm_covering_crtc(ScrnInfoPtr pScrn, BoxPtr box,
BoxRec crtc_box, cover_box;
int coverage, best_coverage, c;
+ /* If we do not own the VT, we do not own the CRTC */
+ if (!pScrn->vtSema)
+ return NULL;
+
best_crtc = NULL;
best_coverage = 0;
box_ret->x1 = box_ret->x2 = box_ret->y1 = box_ret->y2 = 0;