From 48303bac752eaf6bec34ea280561f0fa2221f322 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 21 Mar 2019 13:22:13 +0530 Subject: [PATCH] Use "arrow" as the arrow cursor on Linux Different themes preferentiallyuse left_prt or right_ptr, so use arrow instead --- glfw/wl_window.c | 2 +- glfw/x11_window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glfw/wl_window.c b/glfw/wl_window.c index 4f13b9622..160bacbd6 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -905,7 +905,7 @@ struct wl_cursor* _glfwLoadCursor(GLFWCursorShape shape) struct wl_cursor* ans = NULL; switch (shape) { - C(GLFW_ARROW_CURSOR, "left_ptr", "default") + C(GLFW_ARROW_CURSOR, "arrow", "left_ptr", "default") C(GLFW_IBEAM_CURSOR, "xterm", "ibeam", "text") C(GLFW_CROSSHAIR_CURSOR, "crosshair", "cross") C(GLFW_HAND_CURSOR, "hand2", "grab", "grabbing", "closedhand") diff --git a/glfw/x11_window.c b/glfw/x11_window.c index 8ca8ff85f..957c97df1 100644 --- a/glfw/x11_window.c +++ b/glfw/x11_window.c @@ -2637,7 +2637,7 @@ int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, GLFWCursorShape shape int native = 0; #define C(name, val) case name: native = val; break; switch(shape) { - C(GLFW_ARROW_CURSOR, XC_left_ptr); + C(GLFW_ARROW_CURSOR, XC_arrow); C(GLFW_IBEAM_CURSOR, XC_xterm); C(GLFW_CROSSHAIR_CURSOR, XC_crosshair); C(GLFW_HAND_CURSOR, XC_hand2);