|
|
@ -54,6 +54,8 @@ static void pointerHandleEnter(void* data, |
|
|
|
_glfw.wl.pointerSerial = serial; |
|
|
|
_glfw.wl.pointerSerial = serial; |
|
|
|
_glfw.wl.pointerFocus = window; |
|
|
|
_glfw.wl.pointerFocus = window; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window->wl.hovered = GLFW_TRUE; |
|
|
|
|
|
|
|
|
|
|
|
_glfwPlatformSetCursor(window, window->wl.currentCursor); |
|
|
|
_glfwPlatformSetCursor(window, window->wl.currentCursor); |
|
|
|
_glfwInputCursorEnter(window, GLFW_TRUE); |
|
|
|
_glfwInputCursorEnter(window, GLFW_TRUE); |
|
|
|
} |
|
|
|
} |
|
|
@ -68,6 +70,8 @@ static void pointerHandleLeave(void* data, |
|
|
|
if (!window) |
|
|
|
if (!window) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window->wl.hovered = GLFW_FALSE; |
|
|
|
|
|
|
|
|
|
|
|
_glfw.wl.pointerSerial = serial; |
|
|
|
_glfw.wl.pointerSerial = serial; |
|
|
|
_glfw.wl.pointerFocus = NULL; |
|
|
|
_glfw.wl.pointerFocus = NULL; |
|
|
|
_glfwInputCursorEnter(window, GLFW_FALSE); |
|
|
|
_glfwInputCursorEnter(window, GLFW_FALSE); |
|
|
|