Wayland: Fix fallback decorations emitting errors

A GLFW_CURSOR_UNAVAILABLE error would be emitted each time the cursor
moved over the fallback decorations if the standard cursor shape
appropriate for that part was missing on the system.

These errors served no useful purpose and have been removed.
This commit is contained in:
Camilla Löwy 2023-04-25 22:47:18 +02:00
parent 3fa2360720
commit 00a663dafd
2 changed files with 2 additions and 4 deletions

View File

@ -384,6 +384,7 @@ information on what to include when reporting a bug.
decorations decorations
- [Wayland] Bugfix: Connecting a mouse after `glfwInit` would segfault (#1450) - [Wayland] Bugfix: Connecting a mouse after `glfwInit` would segfault (#1450)
- [Wayland] Bugfix: Joysticks connected after `glfwInit` were not detected (#2198) - [Wayland] Bugfix: Joysticks connected after `glfwInit` were not detected (#2198)
- [Wayland] Bugfix: Fallback decorations emitted `GLFW_CURSOR_UNAVAILABLE` errors
- [POSIX] Removed use of deprecated function `gettimeofday` - [POSIX] Removed use of deprecated function `gettimeofday`
- [POSIX] Bugfix: `CLOCK_MONOTONIC` was not correctly tested for or enabled - [POSIX] Bugfix: `CLOCK_MONOTONIC` was not correctly tested for or enabled
- [Linux] Bugfix: Joysticks without buttons were ignored (#2042,#2043) - [Linux] Bugfix: Joysticks without buttons were ignored (#2042,#2043)

View File

@ -1327,11 +1327,8 @@ static void setCursor(_GLFWwindow* window, const char* name)
cursor = wl_cursor_theme_get_cursor(theme, name); cursor = wl_cursor_theme_get_cursor(theme, name);
if (!cursor) if (!cursor)
{
_glfwInputError(GLFW_CURSOR_UNAVAILABLE,
"Wayland: Standard cursor shape unavailable");
return; return;
}
// TODO: handle animated cursors too. // TODO: handle animated cursors too.
image = cursor->images[0]; image = cursor->images[0];