From fd7d496d4c5dcd9377ce945989ce05f464dc3afc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Jul 2019 00:04:13 +0200 Subject: Remove view pointer from events This makes events POD, which is generally nice. The view was originally added to reflect the display and window references in XEvent, but doesn't seem very useful in Pugl applications. --- pugl/pugl_x11.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pugl/pugl_x11.c') diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index 3bd94df..59fb29c 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -296,9 +296,8 @@ translateModifiers(const unsigned xstate) static PuglEvent translateEvent(PuglView* view, XEvent xevent) { - PuglEvent event = {0}; - event.any.view = view; - event.any.flags |= xevent.xany.send_event ? PUGL_IS_SEND_EVENT : 0; + PuglEvent event = {0}; + event.any.flags = xevent.xany.send_event ? PUGL_IS_SEND_EVENT : 0; switch (xevent.type) { case ClientMessage: -- cgit v1.2.1