aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-16 20:32:28 +0100
committerDavid Robillard <d@drobilla.net>2020-03-16 21:21:15 +0100
commita54361853bdfa08437c2858e603ce6202fb341b2 (patch)
tree5e86a841cc14dd4ca04d7b7b54b05f9c37e6feaf /pugl/detail/x11.h
parent7de08cd2a57d26f546060183944632da71f643f2 (diff)
downloadpugl-a54361853bdfa08437c2858e603ce6202fb341b2.tar.gz
pugl-a54361853bdfa08437c2858e603ce6202fb341b2.tar.bz2
pugl-a54361853bdfa08437c2858e603ce6202fb341b2.zip
Add timer events
Diffstat (limited to 'pugl/detail/x11.h')
-rw-r--r--pugl/detail/x11.h11
1 files changed, 11 insertions, 0 deletions
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;
};