aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_win.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_win.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_win.c')
-rw-r--r--pugl/pugl_win.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c
index e9fecac..9d5b124 100644
--- a/pugl/pugl_win.c
+++ b/pugl/pugl_win.c
@@ -636,7 +636,6 @@ handleCrossing(PuglView* view, const PuglEventType type, POINT pos)
const PuglEventCrossing ev = {
type,
- view,
0,
GetMessageTime() / 1e3,
(double)pos.x,
@@ -670,7 +669,6 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
memset(&event, 0, sizeof(event));
event.any.type = PUGL_NOTHING;
- event.any.view = view;
if (InSendMessageEx(dummy_ptr)) {
event.any.flags |= PUGL_IS_SEND_EVENT;
}