From 3670cd0561e149a0162fb222ea91d0127ded51ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 25 Jul 2022 16:28:23 +0200 Subject: [PATCH] Wayland: Remove unreachable code This platform function is only called if the cursor is enabled. (cherry picked from commit 3a5c726d1bd485e63219c2a6c3e377f434d6ee10) --- src/wl_window.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index d15f4739..b1f47804 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -2294,13 +2294,6 @@ void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) { - if (window->wl.lockedPointer) - { - zwp_locked_pointer_v1_set_cursor_position_hint( - window->wl.lockedPointer, - wl_fixed_from_double(x), - wl_fixed_from_double(y)); - } } void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode)