summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2014-05-21 11:54:24 +0200
committerJakob Bornecrantz <jakob@vmware.com>2014-05-23 12:56:59 +0200
commitaa7309254808e27a4ac5d3dc674be179646280b5 (patch)
tree542309e37fd9968c9ac01c1a123958410a0ac32d
parente8d6facf34adf1c601a3afd0a984ce90ad8fe059 (diff)
vmware/vmwgfx: Don't move cursors without images
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Thomas Hellström <thellstrom@vmware.com>
-rw-r--r--vmwgfx/vmwgfx_crtc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vmwgfx/vmwgfx_crtc.c b/vmwgfx/vmwgfx_crtc.c
index fec04c0..3bc3b21 100644
--- a/vmwgfx/vmwgfx_crtc.c
+++ b/vmwgfx/vmwgfx_crtc.c
@@ -276,6 +276,10 @@ crtc_set_cursor_position(xf86CrtcPtr crtc, int x, int y)
modesettingPtr ms = modesettingPTR(crtc->scrn);
struct crtc_private *crtcp = crtc->driver_private;
+ /* Seems like newer X servers try to move cursors without images */
+ if (!crtcp->cursor_bo)
+ return;
+
drmModeMoveCursor(ms->fd, crtcp->drm_crtc->crtc_id, x, y);
}