diff options
Diffstat (limited to 'src/win.c')
-rw-r--r-- | src/win.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -887,6 +887,11 @@ puglStopTimer(PuglView* view, uintptr_t id) PuglStatus puglSendEvent(PuglView* view, const PuglEvent* event) { + if (event->type == PUGL_CLOSE) { + PostMessage(view->impl->hwnd, WM_CLOSE, 0, 0); + return PUGL_SUCCESS; + } + if (event->type == PUGL_CLIENT) { PostMessage(view->impl->hwnd, PUGL_LOCAL_CLIENT_MSG, |