From 7624578c21f899190c0b22e72a67bd811c9854ca Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 27 Feb 2019 06:17:20 +0530 Subject: [PATCH] Fix X11/Wayland addTimer returning incorrect timer ids --- glfw/backend_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/backend_utils.c b/glfw/backend_utils.c index 43f1e281e..aca3b9783 100644 --- a/glfw/backend_utils.c +++ b/glfw/backend_utils.c @@ -122,7 +122,7 @@ addTimer(EventLoopData *eld, const char *name, double interval, int enabled, boo t->free = free; t->id = ++timer_counter; update_timers(eld); - return t->id; + return timer_counter; } void