1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Wayland: Fix error for missing protocol

A protocol not being available is not a platform error.  The platform is
doing fine; we're just sad that it lacks a feature we want.
This commit is contained in:
Camilla Löwy 2022-07-24 22:28:32 +02:00 committed by Camilla Löwy
parent e85b645b8a
commit 09ebf3f0bf

View File

@ -2507,8 +2507,8 @@ static void lockPointer(_GLFWwindow* window)
{
if (!_glfw.wl.relativePointerManager)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: no relative pointer manager");
_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
"Wayland: The compositor does not support pointer locking");
return;
}