aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-22 00:04:13 +0200
committerDavid Robillard <d@drobilla.net>2019-07-24 01:02:52 +0200
commitfd7d496d4c5dcd9377ce945989ce05f464dc3afc (patch)
treeb3461c1308ceaad427c036b1867bda98a36eba73 /pugl/pugl_x11.c
parent9d127e389aa182f5d75395a59b3ba7241575f525 (diff)
downloadpugl-fd7d496d4c5dcd9377ce945989ce05f464dc3afc.tar.gz
pugl-fd7d496d4c5dcd9377ce945989ce05f464dc3afc.tar.bz2
pugl-fd7d496d4c5dcd9377ce945989ce05f464dc3afc.zip
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.
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c5
1 files changed, 2 insertions, 3 deletions
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: