1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-22 18:28:52 -05:00

Wayland: Remove unreachable code

This platform function is only called if the cursor is enabled.
This commit is contained in:
Camilla Löwy 2022-07-25 16:28:23 +02:00
parent 7be6a2cabe
commit 3a5c726d1b

View File

@ -2252,13 +2252,6 @@ void _glfwGetCursorPosWayland(_GLFWwindow* window, double* xpos, double* ypos)
void _glfwSetCursorPosWayland(_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 _glfwSetCursorModeWayland(_GLFWwindow* window, int mode)