aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/detail/x11.c')
-rw-r--r--pugl/detail/x11.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index 6fbe36a..10ae0bb 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -253,8 +253,7 @@ puglCreateWindow(PuglView* view, const char* title)
"XCreateID failed\n");
}
- const PuglEvent createEvent = {{PUGL_CREATE, 0}};
- puglDispatchEvent(view, &createEvent);
+ puglDispatchSimpleEvent(view, PUGL_CREATE);
return PUGL_SUCCESS;
}