mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
modesetting: fix cursor rendering with hotspots.
older kernels report EINVAL not ENOSYS, doh. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -500,7 +500,7 @@ drmmode_show_cursor (xf86CrtcPtr crtc)
|
||||
CursorPtr cursor = xf86_config->cursor;
|
||||
int ret;
|
||||
ret = drmModeSetCursor2(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, handle, ms->cursor_width, ms->cursor_height, cursor->bits->xhot, cursor->bits->yhot);
|
||||
if (ret == -ENOSYS)
|
||||
if (ret == -EINVAL)
|
||||
use_set_cursor2 = FALSE;
|
||||
else
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user