aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/win.c b/src/win.c
index 664912b..448e053 100644
--- a/src/win.c
+++ b/src/win.c
@@ -502,7 +502,9 @@ handleCrossing(PuglView* view, const PuglEventType type, POINT pos)
PUGL_CROSSING_NORMAL,
};
- puglDispatchEvent(view, (const PuglEvent*)&ev);
+ PuglEvent crossingEvent = {{type, 0}};
+ crossingEvent.crossing = ev;
+ puglDispatchEvent(view, &crossingEvent);
}
static void