Wayland: Remove unreachable code

This platform function is only called if the cursor is enabled.

(cherry picked from commit 3a5c726d1b)
This commit is contained in:
Camilla Löwy 2022-07-25 16:28:23 +02:00 committed by Camilla Löwy
parent 0ee9b7281b
commit 3670cd0561

View File

@ -2294,13 +2294,6 @@ void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos)
void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) 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) void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode)