diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-18 15:19:55 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-18 15:19:55 -0400 |
| commit | 58673a614c1142567acae06e0830943bf6b50f11 (patch) | |
| tree | 6c63de7690dba622eb2a7c3ce1faf6ce75e2ec35 | |
| parent | b56f60c04cb5128edce4894c5aaf8c04f721125b (diff) | |
Made the previous commit more robust.
| -rw-r--r-- | redo/window_darwin.m | 5 |
1 files changed, 4 insertions, 1 deletions
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) |
