diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-03-18 16:46:08 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-03-23 16:54:24 +0900 |
commit | d670c5c9851b4eff21c845d26c7d7e4eb5ee0fa9 (patch) | |
tree | cc90107e5160221e3834b651b0f41a0d929506fd /src/drmmode_display.c | |
parent | 7f3d0780ca65a90117c2a61362dbc0899bd9c0b0 (diff) |
Check for xf86CursorResetCursor
If it's available, Xorg calls it on each mode configuration change. It
does what xf86_reload_cursors does (and more), so we don't need to call
the latter anymore.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r-- | src/drmmode_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 3c873dc0..ad3de7f4 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -873,8 +873,10 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode, break; } +#ifndef HAVE_XF86_CURSOR_RESET_CURSOR if (!info->hwcursor_disabled) xf86_reload_cursors(pScreen); +#endif done: if (!ret) { |