diff --git a/glfw/wl_client_side_decorations.c b/glfw/wl_client_side_decorations.c index 213b6bb1e..ed7e87218 100644 --- a/glfw/wl_client_side_decorations.c +++ b/glfw/wl_client_side_decorations.c @@ -538,11 +538,6 @@ set_cursor(GLFWCursorShape shape, _GLFWwindow* window) } -static void -handle_pointer_enter(_GLFWwindow *window) { - (void)window; -} - static void handle_pointer_leave(_GLFWwindow *window) { (void)window; @@ -584,7 +579,12 @@ handle_pointer_move(_GLFWwindow *window) { if (_glfw.wl.cursorPreviousShape != cursorShape) set_cursor(cursorShape, window); } -void +static void +handle_pointer_enter(_GLFWwindow *window) { + handle_pointer_move(window); // enter is also a move +} + +static void handle_pointer_button(_GLFWwindow *window, uint32_t button, uint32_t state) { uint32_t edges = XDG_TOPLEVEL_RESIZE_EDGE_NONE; diff --git a/glfw/wl_init.c b/glfw/wl_init.c index e177743d3..bf16358f1 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -127,7 +127,8 @@ pointerHandleLeave(void* data UNUSED, struct wl_pointer* pointer UNUSED, uint32_ } else csd_handle_pointer_event(window, -3, -3); } -static void pointerHandleMotion(void* data UNUSED, struct wl_pointer* pointer UNUSED, uint32_t time UNUSED, wl_fixed_t sx, wl_fixed_t sy) { +static void +pointerHandleMotion(void* data UNUSED, struct wl_pointer* pointer UNUSED, uint32_t time UNUSED, wl_fixed_t sx, wl_fixed_t sy) { _GLFWwindow* window = _glfw.wl.pointerFocus; if (!window) return; if (window->cursorMode == GLFW_CURSOR_DISABLED) return;