From 19a28e2c9f583bb372fcbde134feb173d9500765 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 25 Jun 2015 12:58:09 +0200 Subject: [PATCH] Fixed X11 arrow cursor image. Fixes #541. --- README.md | 1 + src/x11_window.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 26ca38f9..113cd6d0 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ GLFW bundles a number of dependencies in the `deps/` directory. - [X11] Bugfix: No fallback existed for missing `_NET_ACTIVE_WINDOW` support - [X11] Bugfix: Some significant window focus events were ignored - [X11] Bugfix: Auto-iconification of full screen windows was not implemented + - [X11] Bugfix: `GLFW_ARROW_CURSOR` selected the wrong cursor image - [WGL] Removed `GLFW_USE_DWM_SWAP_INTERVAL` compile-time option - [WGL] Bugfix: Swap interval was ignored when DWM was enabled - [GLX] Added dependency on `libdl` on systems where it provides `dlopen` diff --git a/src/x11_window.c b/src/x11_window.c index 12e61cd4..ae27eed9 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -114,7 +114,7 @@ static int translateCursorShape(int shape) switch (shape) { case GLFW_ARROW_CURSOR: - return XC_arrow; + return XC_left_ptr; case GLFW_IBEAM_CURSOR: return XC_xterm; case GLFW_CROSSHAIR_CURSOR: