diff options
author | Ray Strode <rstrode@redhat.com> | 2016-09-09 18:09:05 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-09-20 15:25:37 +0300 |
commit | 4532b241a4b7b0ca372a80baf900ce4ea2015412 (patch) | |
tree | 8233bd477d8df9b782de4c7d87682a1665c1df59 /drivers/gpu/drm/qxl/qxl_drv.h | |
parent | de59576293f82ee285ef5edb31f7169c84403368 (diff) | |
download | linux-4532b241a4b7b0ca372a80baf900ce4ea2015412.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_drv.h')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index 8e633caa4078..5f3e5ad99de7 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.h +++ b/drivers/gpu/drm/qxl/qxl_drv.h @@ -137,6 +137,7 @@ struct qxl_crtc { int cur_y; int hot_spot_x; int hot_spot_y; + struct qxl_bo *cursor_bo; }; struct qxl_output { |