From 778474f436e23d1ec9f42fff6026bac23a26212d Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 11 Dec 2019 22:15:55 +0100 Subject: [PATCH] Wayland: Unset the cursor shape on border exit From upstream: https://github.com/glfw/glfw/commit/ef6189f348d7f911afe640e6b817e2e945dc86a1. --- glfw/wl_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glfw/wl_init.c b/glfw/wl_init.c index 8c67f7a3a..1974984d0 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -137,6 +137,7 @@ static void pointerHandleLeave(void* data UNUSED, _glfw.wl.pointerSerial = serial; _glfw.wl.pointerFocus = NULL; _glfwInputCursorEnter(window, false); + _glfw.wl.cursorPreviousShape = NULL; } static void setCursor(GLFWCursorShape shape) @@ -192,6 +193,7 @@ static void pointerHandleMotion(void* data UNUSED, window->wl.cursorPosX = x; window->wl.cursorPosY = y; _glfwInputCursorPos(window, x, y); + _glfw.wl.cursorPreviousShape = NULL; return; case topDecoration: if (y < _GLFW_DECORATION_WIDTH)