Commit 5e25bdfb authored by Peter Hutterer's avatar Peter Hutterer

timer: make the timer offset error a bit more user-friendly

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent da9eace8
......@@ -93,7 +93,7 @@ libinput_timer_set_flags(struct libinput_timer *timer,
if (expire < now) {
if ((flags & TIMER_FLAG_ALLOW_NEGATIVE) == 0)
"timer %s: offset negative (-%dms)\n",
"timer %s: scheduled expiry is in the past (-%dms), your system is too slow\n",
us2ms(now - expire));
} else if ((expire - now) > ms2us(5000)) {
......@@ -660,7 +660,7 @@ static void timer_offset_warning(struct libinput *libinput,
int *warning_triggered = (int*)libinput_get_user_data(libinput);
strstr(format, "offset negative"))
strstr(format, "scheduled expiry is in the past"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment