Fix X11/Wayland addTimer returning incorrect timer ids

This commit is contained in:
Kovid Goyal 2019-02-27 06:17:20 +05:30
parent d4b477ad78
commit 7624578c21
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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