Made the previous commit more robust.

This commit is contained in:
Pietro Gagliardi 2014-07-18 15:19:55 -04:00
parent b56f60c04c
commit 58673a614c
1 changed files with 4 additions and 1 deletions

View File

@ -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)