X11: Fix arrow mouse cursor using right pointing instead of the default left pointing arrow

Fixes #2341
This commit is contained in:
Kovid Goyal 2020-02-06 21:11:09 +05:30
parent e33f882abc
commit b235f411b0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- A new :opt:`cursor_beam_thickness` option to control the thickness of the - A new :opt:`cursor_beam_thickness` option to control the thickness of the
beam cursor (:iss:`2337`) beam cursor (:iss:`2337`)
- X11: Fix arrow mouse cursor using right pointing instead of the default left
pointing arrow (:iss:`2341`)
0.16.0 [2020-01-28] 0.16.0 [2020-01-28]

2
glfw/x11_window.c vendored
View File

@ -2692,7 +2692,7 @@ int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, GLFWCursorShape shape
int native = 0; int native = 0;
#define C(name, val) case name: native = val; break; #define C(name, val) case name: native = val; break;
switch(shape) { switch(shape) {
C(GLFW_ARROW_CURSOR, XC_arrow); C(GLFW_ARROW_CURSOR, XC_left_ptr);
C(GLFW_IBEAM_CURSOR, XC_xterm); C(GLFW_IBEAM_CURSOR, XC_xterm);
C(GLFW_CROSSHAIR_CURSOR, XC_crosshair); C(GLFW_CROSSHAIR_CURSOR, XC_crosshair);
C(GLFW_HAND_CURSOR, XC_hand2); C(GLFW_HAND_CURSOR, XC_hand2);