Use "arrow" as the arrow cursor on Linux

Different themes preferentiallyuse left_prt or right_ptr, so use arrow
instead
This commit is contained in:
Kovid Goyal 2019-03-21 13:22:13 +05:30
parent 5ab8a665be
commit 48303bac75
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

2
glfw/wl_window.c vendored
View File

@ -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")

2
glfw/x11_window.c vendored
View File

@ -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);