From c6b9cb759a639b63878be7d64b8c3f0855849c77 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Mon, 25 May 2020 15:18:05 +0200 Subject: [PATCH] Wayland: Rename handlers for more unicity From upstream: https://github.com/glfw/glfw/commit/754b7feaa144b22383457f9c0561adc9ebb24fd7. 1fa66ca45d6234e9a56ecb6616e8af9f9442479d didn't include the changes to `wl_window.c`. --- glfw/wl_window.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/glfw/wl_window.c b/glfw/wl_window.c index 476301280..f49bc4eb0 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -388,9 +388,9 @@ static const struct zxdg_toplevel_decoration_v1_listener xdgDecorationListener = xdgDecorationHandleConfigure, }; -static void handleEnter(void *data, - struct wl_surface *surface UNUSED, - struct wl_output *output) +static void surfaceHandleEnter(void *data, + struct wl_surface *surface UNUSED, + struct wl_output *output) { _GLFWwindow* window = data; _GLFWmonitor* monitor = wl_output_get_user_data(output); @@ -411,9 +411,9 @@ static void handleEnter(void *data, } } -static void handleLeave(void *data, - struct wl_surface *surface UNUSED, - struct wl_output *output) +static void surfaceHandleLeave(void *data, + struct wl_surface *surface UNUSED, + struct wl_output *output) { _GLFWwindow* window = data; _GLFWmonitor* monitor = wl_output_get_user_data(output); @@ -436,8 +436,8 @@ static void handleLeave(void *data, } static const struct wl_surface_listener surfaceListener = { - handleEnter, - handleLeave + surfaceHandleEnter, + surfaceHandleLeave }; static void setIdleInhibitor(_GLFWwindow* window, bool enable) @@ -1340,14 +1340,14 @@ void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) wl_buffer_destroy(cursor->wl.buffer); } -static void handleRelativeMotion(void* data, - struct zwp_relative_pointer_v1* pointer UNUSED, - uint32_t timeHi UNUSED, - uint32_t timeLo UNUSED, - wl_fixed_t dx UNUSED, - wl_fixed_t dy UNUSED, - wl_fixed_t dxUnaccel, - wl_fixed_t dyUnaccel) +static void relativePointerHandleRelativeMotion(void* data, + struct zwp_relative_pointer_v1* pointer UNUSED, + uint32_t timeHi UNUSED, + uint32_t timeLo UNUSED, + wl_fixed_t dx UNUSED, + wl_fixed_t dy UNUSED, + wl_fixed_t dxUnaccel, + wl_fixed_t dyUnaccel) { _GLFWwindow* window = data; @@ -1360,11 +1360,11 @@ static void handleRelativeMotion(void* data, } static const struct zwp_relative_pointer_v1_listener relativePointerListener = { - handleRelativeMotion + relativePointerHandleRelativeMotion }; -static void handleLocked(void* data UNUSED, - struct zwp_locked_pointer_v1* lockedPointer UNUSED) +static void lockedPointerHandleLocked(void* data UNUSED, + struct zwp_locked_pointer_v1* lockedPointer UNUSED) { } @@ -1384,14 +1384,14 @@ static void unlockPointer(_GLFWwindow* window) static void lockPointer(_GLFWwindow* window UNUSED); -static void handleUnlocked(void* data UNUSED, - struct zwp_locked_pointer_v1* lockedPointer UNUSED) +static void lockedPointerHandleUnlocked(void* data UNUSED, + struct zwp_locked_pointer_v1* lockedPointer UNUSED) { } static const struct zwp_locked_pointer_v1_listener lockedPointerListener = { - handleLocked, - handleUnlocked + lockedPointerHandleLocked, + lockedPointerHandleUnlocked }; static void lockPointer(_GLFWwindow* window)