aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pugl/detail/win.c2
-rw-r--r--pugl/pugl.h12
2 files changed, 1 insertions, 13 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c
index 36f76eb..080460d 100644
--- a/pugl/detail/win.c
+++ b/pugl/detail/win.c
@@ -690,7 +690,7 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
return TRUE;
case WM_QUIT:
case PUGL_LOCAL_CLOSE_MSG:
- event.close.type = PUGL_CLOSE;
+ event.any.type = PUGL_CLOSE;
break;
default:
return DefWindowProc(view->impl->hwnd, message, wParam, lParam);
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 7ec1d9e..64d25cb 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -261,17 +261,6 @@ typedef struct {
} PuglEventExpose;
/**
- Window close event.
-
- This event is sent when the window is to be closed, for example when the
- user clicks the close button.
-*/
-typedef struct {
- PuglEventType type; ///< #PUGL_CLOSE
- PuglEventFlags flags; ///< Bitwise OR of #PuglEventFlag values
-} PuglEventClose;
-
-/**
Key press or release event.
This event represents low-level key presses and releases. This can be used
@@ -408,7 +397,6 @@ typedef union {
PuglEventButton button; ///< #PUGL_BUTTON_PRESS, #PUGL_BUTTON_RELEASE
PuglEventConfigure configure; ///< #PUGL_CONFIGURE
PuglEventExpose expose; ///< #PUGL_EXPOSE
- PuglEventClose close; ///< #PUGL_CLOSE
PuglEventKey key; ///< #PUGL_KEY_PRESS, #PUGL_KEY_RELEASE
PuglEventText text; ///< #PUGL_TEXT
PuglEventCrossing crossing; ///< #PUGL_ENTER_NOTIFY, #PUGL_LEAVE_NOTIFY