Wayland: Fix cursor being reset continuously

Should only do that if the cursor is actually supposed to be animated.
This commit is contained in:
Kovid Goyal 2018-10-26 11:23:34 +05:30
parent 30c6c4697f
commit 3e4eca5816
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

1
glfw/wl_window.c vendored
View File

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