From 3e4eca5816c66a0a7d50f8757ac884ccbedc6cdf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 26 Oct 2018 11:23:34 +0530 Subject: [PATCH] Wayland: Fix cursor being reset continuously Should only do that if the cursor is actually supposed to be animated. --- glfw/wl_window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glfw/wl_window.c b/glfw/wl_window.c index 6aa81f7a4..f19a2c6b0 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -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; } }