clients: consolidate timer code part 1

Graphics / Wayland / Weston - Pekka Paalanen [collabora.co.uk] - 12 March 2018 08:17 EDT

There are multiple copies for the timerfd handling code, and I need a timer in one more app. Consolidate all the timerfd code into window.c to reduce the duplication. Many of the copies were also flawed against the race mentioned in toytimer_fire().

This patch handles clickdot and window.c's tooltip timer and cursor timer.

3f5f3afa clients: consolidate timer code part 1
clients/clickdot.c | 36 +++----------
clients/window.c | 150 +++++++++++++++++++++++++++++++++++------------------
clients/window.h | 27 ++++++++++
3 files changed, 135 insertions(+), 78 deletions(-)

Upstream: cgit.freedesktop.org


  • Share