x11: Use XC_top_left_corner/XC_top_right_corner instead of XC_fleur.

On Gnome (and hopefully others!), this produces something that actually
matches SDL_SYSTEM_CURSOR_SIZENWSE/SDL_SYSTEM_CURSOR_SIZENESW. On
other desktop enviroments, it probably fits the spirit better than
XC_fleur in any case.

Reference Issue #2123.
This commit is contained in:
Ryan C. Gordon 2022-05-16 10:50:13 -04:00
parent 48b6cd8bc2
commit 2317a96c8e
No known key found for this signature in database
GPG Key ID: FA148B892AB48044

View File

@ -244,8 +244,8 @@ X11_CreateSystemCursor(SDL_SystemCursor id)
case SDL_SYSTEM_CURSOR_WAIT: shape = XC_watch; break; case SDL_SYSTEM_CURSOR_WAIT: shape = XC_watch; break;
case SDL_SYSTEM_CURSOR_CROSSHAIR: shape = XC_tcross; break; case SDL_SYSTEM_CURSOR_CROSSHAIR: shape = XC_tcross; break;
case SDL_SYSTEM_CURSOR_WAITARROW: shape = XC_watch; break; case SDL_SYSTEM_CURSOR_WAITARROW: shape = XC_watch; break;
case SDL_SYSTEM_CURSOR_SIZENWSE: shape = XC_fleur; break; case SDL_SYSTEM_CURSOR_SIZENWSE: shape = XC_top_left_corner; break;
case SDL_SYSTEM_CURSOR_SIZENESW: shape = XC_fleur; break; case SDL_SYSTEM_CURSOR_SIZENESW: shape = XC_top_right_corner; break;
case SDL_SYSTEM_CURSOR_SIZEWE: shape = XC_sb_h_double_arrow; break; case SDL_SYSTEM_CURSOR_SIZEWE: shape = XC_sb_h_double_arrow; break;
case SDL_SYSTEM_CURSOR_SIZENS: shape = XC_sb_v_double_arrow; break; case SDL_SYSTEM_CURSOR_SIZENS: shape = XC_sb_v_double_arrow; break;
case SDL_SYSTEM_CURSOR_SIZEALL: shape = XC_fleur; break; case SDL_SYSTEM_CURSOR_SIZEALL: shape = XC_fleur; break;