From a54361853bdfa08437c2858e603ce6202fb341b2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Mar 2020 20:32:28 +0100 Subject: Add timer events --- pugl/detail/x11.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pugl/detail/x11.h') diff --git a/pugl/detail/x11.h b/pugl/detail/x11.h index fe8ce01..6f86a90 100644 --- a/pugl/detail/x11.h +++ b/pugl/detail/x11.h @@ -38,10 +38,21 @@ typedef struct { Atom NET_WM_STATE_DEMANDS_ATTENTION; } PuglX11Atoms; +typedef struct { + XID alarm; + PuglView* view; + uint64_t id; +} PuglTimer; + struct PuglWorldInternalsImpl { Display* display; PuglX11Atoms atoms; XIM xim; + PuglTimer* timers; + size_t numTimers; + XID serverTimeCounter; + int syncEventBase; + bool syncSupported; bool dispatchingEvents; }; -- cgit v1.2.1