From 7c0b236eb0dc33ce343432992189a35a594e5332 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Fri, 19 Mar 2021 09:14:49 +1100 Subject: [PATCH] Fix for hiding window on close --- v2/internal/ffenestri/ffenestri_darwin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/internal/ffenestri/ffenestri_darwin.c b/v2/internal/ffenestri/ffenestri_darwin.c index 480e2a1b..bfa18bc0 100644 --- a/v2/internal/ffenestri/ffenestri_darwin.c +++ b/v2/internal/ffenestri/ffenestri_darwin.c @@ -270,7 +270,7 @@ void Hide(struct Application *app) { if( app->shuttingDown ) return; ON_MAIN_THREAD( - msg(app->application, s("hide:")); + msg(app->mainWindow, s("orderOut:")); ); } @@ -1237,12 +1237,12 @@ void createDelegate(struct Application *app) { } bool windowShouldClose(id self, SEL cmd, id sender) { - msg(sender, s("orderBack:")); + msg(sender, s("orderOut:")); return false; } bool windowShouldExit(id self, SEL cmd, id sender) { - msg(sender, s("orderBack:")); + msg(sender, s("orderOut:")); messageFromWindowCallback("WC"); return false; }