浏览代码

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.
Camilla Löwy 3 年之前
父节点
当前提交
09ebf3f0bf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/wl_window.c

+ 2 - 2
src/wl_window.c

@@ -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;
     }