From 4cbe743b74993bc97829dded273d557b0209940f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 2 Sep 2021 18:30:41 +0200 Subject: [PATCH] Wayland: Fix standard cursor name selection Regression introduced by 08e5a1706318e4fd32366a88d0778a9f545175af. --- src/wl_window.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wl_window.c b/src/wl_window.c index dd6f26d5..618c8e7f 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -1299,18 +1299,25 @@ int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) { case GLFW_ARROW_CURSOR: name = "left_ptr"; + break; case GLFW_IBEAM_CURSOR: name = "xterm"; + break; case GLFW_CROSSHAIR_CURSOR: name = "crosshair"; + break; case GLFW_POINTING_HAND_CURSOR: name = "hand2"; + break; case GLFW_RESIZE_EW_CURSOR: name = "sb_h_double_arrow"; + break; case GLFW_RESIZE_NS_CURSOR: name = "sb_v_double_arrow"; + break; case GLFW_RESIZE_ALL_CURSOR: name = "fleur"; + break; default: _glfwInputError(GLFW_CURSOR_UNAVAILABLE, "Wayland: Standard cursor shape unavailable");