aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac.m')
-rw-r--r--src/mac.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mac.m b/src/mac.m
index 103e790..00b886c 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -1347,6 +1347,11 @@ puglSendEvent(PuglView* view, const PuglEvent* event)
return PUGL_SUCCESS;
}
+ if (event->type == PUGL_CLOSE) {
+ [view->impl->window close];
+ return PUGL_SUCCESS;
+ }
+
return PUGL_UNSUPPORTED;
}