aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-25 12:28:32 +0100
committerDavid Robillard <d@drobilla.net>2021-01-25 12:28:32 +0100
commite497eea68ca704f62d3a65f1bbe787167cd3ae3e (patch)
tree4837b49783eb092679c1292ec1de46816572ec5c /src
parent4e29afc7d221fda34d9ee22eee8be71ab5c3e97d (diff)
downloadpugl-e497eea68ca704f62d3a65f1bbe787167cd3ae3e.tar.gz
pugl-e497eea68ca704f62d3a65f1bbe787167cd3ae3e.tar.bz2
pugl-e497eea68ca704f62d3a65f1bbe787167cd3ae3e.zip
Fix warnings when compiling for X11 as C++
Diffstat (limited to 'src')
-rw-r--r--src/x11.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/x11.c b/src/x11.c
index a422e73..6c8f564 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -1119,8 +1119,12 @@ puglDispatchX11Events(PuglWorld* world)
XWindowAttributes attrs;
XGetWindowAttributes(view->impl->display, view->impl->win, &attrs);
- const PuglEventConfigure configure = {
- PUGL_CONFIGURE, 0, attrs.x, attrs.y, attrs.width, attrs.height};
+ const PuglEventConfigure configure = {PUGL_CONFIGURE,
+ 0,
+ (double)attrs.x,
+ (double)attrs.y,
+ (double)attrs.width,
+ (double)attrs.height};
puglDispatchEvent(view, (const PuglEvent*)&configure);
puglDispatchEvent(view, &event);