diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 307e7637..e7eeb44d 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -2739,6 +2739,11 @@ sna_covering_crtc(ScrnInfoPtr scrn, __FUNCTION__, c, crtc->bounds.x1, crtc->bounds.y1, crtc->bounds.x2, crtc->bounds.y2)); + if (*(const uint64_t *)box == *(uint64_t *)&crtc->bounds) { + DBG(("%s: box exactly matches crtc [%d]\n", + __FUNCTION__, c)); + return crtc; + } if (!sna_box_intersect(&cover_box, &crtc->bounds, box)) continue;