mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Wayland: Remove unreachable code
This platform function is only called if the cursor is enabled.
This commit is contained in:
parent
7be6a2cabe
commit
3a5c726d1b
|
@ -2252,13 +2252,6 @@ void _glfwGetCursorPosWayland(_GLFWwindow* window, double* xpos, double* ypos)
|
||||||
|
|
||||||
void _glfwSetCursorPosWayland(_GLFWwindow* window, double x, double y)
|
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)
|
void _glfwSetCursorModeWayland(_GLFWwindow* window, int mode)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user