drm/qxl: reapply cursor after SetCrtc calls
authorRay Strode <rstrode@redhat.com>
Fri, 9 Sep 2016 15:09:05 +0000 (11:09 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 20 Sep 2016 12:25:37 +0000 (14:25 +0200)
commit4532b241a4b7b0ca372a80baf900ce4ea2015412
tree8233bd477d8df9b782de4c7d87682a1665c1df59
parentde59576293f82ee285ef5edb31f7169c84403368
drm/qxl: reapply cursor after SetCrtc calls

The qxl driver currently destroys and recreates the
qxl "primary" any time the first crtc is set.

A side-effect of destroying the primary is mouse state
associated with the crtc is lost, which leads to
disappearing mouse cursors on wayland sessions.

This commit changes the driver to reapply the cursor
any time SetCrtc is called. It achieves this by keeping
a reference to the cursor bo on the qxl_crtc struct.

Signed-off-by: Ray Strode <rstrode@redhat.com>
Message-id: 1473433745-11016-1-git-send-email-halfline@gmail.com

https://bugzilla.redhat.com/show_bug.cgi?id=1200901
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/qxl/qxl_display.c
drivers/gpu/drm/qxl/qxl_drv.h