aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-04 14:01:57 +0200
committerDavid Robillard <d@drobilla.net>2020-07-04 14:01:57 +0200
commitbe340fd084ba5679f02eb3a73fa9b5dda117bc43 (patch)
tree0342d3be32cb00fa7b177b175862d365859a1a1a /pugl/detail
parent6a776bb6eeffbe921b657d531c0d48b878d461e9 (diff)
downloadpugl-be340fd084ba5679f02eb3a73fa9b5dda117bc43.tar.gz
pugl-be340fd084ba5679f02eb3a73fa9b5dda117bc43.tar.bz2
pugl-be340fd084ba5679f02eb3a73fa9b5dda117bc43.zip
X11: Fix integer to enum conversion warning
Diffstat (limited to 'pugl/detail')
-rw-r--r--pugl/detail/x11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index 39a4522..707b2d8 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -710,7 +710,8 @@ puglStartTimer(PuglView* view, uintptr_t id, double timeout)
PuglWorldInternals* w = view->world->impl;
Display* const display = w->display;
const XSyncCounter counter = w->serverTimeCounter;
- const XSyncTrigger trigger = {counter, XSyncRelative, value, 0};
+ const XSyncTestType type = XSyncPositiveTransition;
+ const XSyncTrigger trigger = {counter, XSyncRelative, value, type};
XSyncAlarmAttributes attr = {trigger, value, True, XSyncAlarmActive};
const XSyncAlarm alarm = XSyncCreateAlarm(display, 0x17, &attr);
const PuglTimer timer = {alarm, view, id};