Wayland: Fix cursor being reset continuously
Should only do that if the cursor is actually supposed to be animated.
This commit is contained in:
parent
30c6c4697f
commit
3e4eca5816
1
glfw/wl_window.c
vendored
1
glfw/wl_window.c
vendored
@ -791,6 +791,7 @@ incrementCursorImage(_GLFWwindow* window)
|
||||
cursor->wl.currentImage += 1;
|
||||
cursor->wl.currentImage %= cursor->wl.cursor->image_count;
|
||||
setCursorImage(&cursor->wl);
|
||||
toggleTimer(&_glfw.wl.eventLoopData, _glfw.wl.cursorAnimationTimer, cursor->wl.cursor->image_count > 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user