Wayland: Fix custom disabled cursor being redrawn every frame

This commit is contained in:
Kleber 2026-09-01 20:56:19 -03:00
parent 92dcf4ce74
commit 975d842301

View file

@ -1300,6 +1300,10 @@ static void incrementCursorImage(void)
if (window->wl.surface != _glfw.wl.pointerSurface)
return;
if (window->cursorMode == GLFW_CURSOR_HIDDEN ||
window->cursorMode == GLFW_CURSOR_DISABLED)
return;
_GLFWcursor* cursor = window->cursor;
if (cursor && cursor->wl.cursor)
{