Wayland: Fix phrasing of error messages

This is adapted to 3.3-stable from
2d45681bc3.
This commit is contained in:
Camilla Löwy
2022-03-22 19:30:43 +01:00
parent 25db8f8014
commit 32bedd9a94
2 changed files with 16 additions and 16 deletions
+6 -6
View File
@@ -147,7 +147,7 @@ static void setCursor(_GLFWwindow* window, const char* name)
if (!cursor)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: Standard cursor not found");
"Wayland: Standard cursor shape unavailable");
return;
}
// TODO: handle animated cursors too.
@@ -1040,7 +1040,7 @@ int _glfwPlatformInit(void)
if (!_glfw.wl.cursor.handle)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: Failed to open libwayland-cursor");
"Wayland: Failed to load libwayland-cursor");
return GLFW_FALSE;
}
@@ -1057,7 +1057,7 @@ int _glfwPlatformInit(void)
if (!_glfw.wl.egl.handle)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: Failed to open libwayland-egl");
"Wayland: Failed to load libwayland-egl");
return GLFW_FALSE;
}
@@ -1072,7 +1072,7 @@ int _glfwPlatformInit(void)
if (!_glfw.wl.xkb.handle)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: Failed to open libxkbcommon");
"Wayland: Failed to load libxkbcommon");
return GLFW_FALSE;
}
@@ -1173,7 +1173,7 @@ int _glfwPlatformInit(void)
if (!_glfw.wl.cursorTheme)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: Unable to load default cursor theme");
"Wayland: Failed to load default cursor theme");
return GLFW_FALSE;
}
// If this happens to be NULL, we just fallback to the scale=1 version.
@@ -1196,7 +1196,7 @@ int _glfwPlatformInit(void)
if (!_glfw.wl.clipboardString)
{
_glfwInputError(GLFW_OUT_OF_MEMORY,
"Wayland: Unable to allocate clipboard memory");
"Wayland: Failed to allocate clipboard memory");
return GLFW_FALSE;
}
}