mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 09:51:07 +00:00
Don't make an invisible window main window in NSApplication
-finishLaunching when the application has no main window. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31715 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
43e10b9aa1
commit
b7a7d60b91
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-12-07 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSApplication.m (-finishLaunching): Don't make an
|
||||
invisible window main window when the application has no main
|
||||
window.
|
||||
|
||||
2010-12-07 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSWindow.m (-sendEvent:): Allow any window that responds
|
||||
|
|
|
@ -1060,7 +1060,7 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
|
|||
{
|
||||
NSWindow *win = [windows_list objectAtIndex: i];
|
||||
|
||||
if ([win canBecomeMainWindow])
|
||||
if ([win isVisible] && [win canBecomeMainWindow])
|
||||
{
|
||||
_main_window = win;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue