fix: cursor is not hidden in wayland if previously changed by glfwSetCursor

This commit is contained in:
MihailRis 2026-04-05 11:05:20 +03:00
parent bb44b4186b
commit 6896fa433c

View file

@ -294,6 +294,7 @@ public:
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
} else {
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
glfwSetCursor(window, nullptr);
}
cursorLocked = !cursorLocked;
}