summaryrefslogtreecommitdiff
path: root/vmwgfx/vmwgfx_crtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'vmwgfx/vmwgfx_crtc.c')
-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);
}