sna: Enable coordinate transforms for native CRTC rotation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Feb 2014 14:46:39 +0000 (14:46 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Feb 2014 14:55:30 +0000 (14:55 +0000)
Otherwise X tells Clients that the cursor is still in the unrotated
location when it appears rotated on the display.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_display.c

index 32e74d0..5c0a5a3 100644 (file)
@@ -1591,7 +1591,7 @@ static void sna_crtc_randr(xf86CrtcPtr crtc)
 #endif
                crtc->transform_in_use = TRUE;
        } else
-               crtc->transform_in_use = FALSE;
+               crtc->transform_in_use = sna_crtc->rotation != RR_Rotate_0;
 
        crtc->crtc_to_framebuffer = crtc_to_fb;
        crtc->f_crtc_to_framebuffer = f_crtc_to_fb;