Use left_ptr as default arrow cursor on Wayland

Matches X11.
This commit is contained in:
Kovid Goyal 2020-06-01 20:23:32 +05:30
parent a9f265e8b7
commit 14912461ad
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

4
glfw/wl_window.c vendored
View File

@ -844,7 +844,7 @@ struct wl_cursor* _glfwLoadCursor(GLFWCursorShape shape, struct wl_cursor_theme*
struct wl_cursor* ans = NULL;
switch (shape)
{
C(GLFW_ARROW_CURSOR, "arrow", "left_ptr", "default")
C(GLFW_ARROW_CURSOR, "left_ptr", "arrow", "default")
C(GLFW_IBEAM_CURSOR, "xterm", "ibeam", "text")
C(GLFW_CROSSHAIR_CURSOR, "crosshair", "cross")
C(GLFW_HAND_CURSOR, "hand2", "grab", "grabbing", "closedhand")
@ -925,7 +925,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
void _glfwPlatformDestroyWindow(_GLFWwindow* window)
{
if(window->wl.cursorTheme) {
if (window->wl.cursorTheme) {
_wlCursorThemeManage(_glfw.wl.cursorThemeManager,
window->wl.cursorTheme,
0);