Wayland: Unset the cursor shape on border exit
From upstream: ef6189f348.
This commit is contained in:
parent
c6698ce305
commit
778474f436
2
glfw/wl_init.c
vendored
2
glfw/wl_init.c
vendored
@ -137,6 +137,7 @@ static void pointerHandleLeave(void* data UNUSED,
|
|||||||
_glfw.wl.pointerSerial = serial;
|
_glfw.wl.pointerSerial = serial;
|
||||||
_glfw.wl.pointerFocus = NULL;
|
_glfw.wl.pointerFocus = NULL;
|
||||||
_glfwInputCursorEnter(window, false);
|
_glfwInputCursorEnter(window, false);
|
||||||
|
_glfw.wl.cursorPreviousShape = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setCursor(GLFWCursorShape shape)
|
static void setCursor(GLFWCursorShape shape)
|
||||||
@ -192,6 +193,7 @@ static void pointerHandleMotion(void* data UNUSED,
|
|||||||
window->wl.cursorPosX = x;
|
window->wl.cursorPosX = x;
|
||||||
window->wl.cursorPosY = y;
|
window->wl.cursorPosY = y;
|
||||||
_glfwInputCursorPos(window, x, y);
|
_glfwInputCursorPos(window, x, y);
|
||||||
|
_glfw.wl.cursorPreviousShape = NULL;
|
||||||
return;
|
return;
|
||||||
case topDecoration:
|
case topDecoration:
|
||||||
if (y < _GLFW_DECORATION_WIDTH)
|
if (y < _GLFW_DECORATION_WIDTH)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user