From 58673a614c1142567acae06e0830943bf6b50f11 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 18 Jul 2014 15:19:55 -0400 Subject: [PATCH] Made the previous commit more robust. --- redo/window_darwin.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/redo/window_darwin.m b/redo/window_darwin.m index 20908c1..71d4fae 100644 --- a/redo/window_darwin.m +++ b/redo/window_darwin.m @@ -66,9 +66,12 @@ void windowSetTitle(id win, const char * title) void windowShow(id win) { + goWindowDelegate *d; + [toNSWindow(win) makeKeyAndOrderFront:toNSWindow(win)]; // calling the above the first time won't emit a size changed event (unlike on Windows and GTK+), so fake one to get the controls laid out properly - [[toNSWindow(win) delegate] doWindowResize:win]; + d = [toNSWindow(win) delegate]; + [d doWindowResize:win]; } void windowHide(id win)