Made the previous commit more robust.
This commit is contained in:
parent
b56f60c04c
commit
58673a614c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue