aboutsummaryrefslogtreecommitdiff
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index e6d240c..5cd4373 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -453,8 +453,10 @@ translateEvent(PuglView* view, XEvent xevent)
PuglEvent event;
memset(&event, 0, sizeof(event));
- event.any.view = view;
- event.any.send_event = xevent.xany.send_event;
+ event.any.view = view;
+ if (xevent.xany.send_event) {
+ event.any.flags |= PUGL_IS_SEND_EVENT;
+ }
switch (xevent.type) {
case ConfigureNotify:
@@ -676,7 +678,6 @@ puglProcessEvents(PuglView* view)
if (view->redisplay) {
expose_event.expose.type = PUGL_EXPOSE;
expose_event.expose.view = view;
- expose_event.expose.send_event = true;
expose_event.expose.x = 0;
expose_event.expose.y = 0;
expose_event.expose.width = view->width;