aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);