mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:41:05 +00:00
fix for activation with suppressed icon window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28837 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eb5f81a21a
commit
bc795fdaa1
2 changed files with 26 additions and 3 deletions
|
@ -1727,8 +1727,8 @@ many times.
|
|||
NSString *aString;
|
||||
|
||||
aString = [NSString stringWithFormat: @"%@ -- %@",
|
||||
[_representedFilename lastPathComponent],
|
||||
[_representedFilename stringByDeletingLastPathComponent]];
|
||||
[_representedFilename lastPathComponent],
|
||||
[_representedFilename stringByDeletingLastPathComponent]];
|
||||
isFileName = [_windowTitle isEqual: aString];
|
||||
|
||||
[NSApp addWindowsItem: self
|
||||
|
@ -2679,8 +2679,15 @@ resetCursorRectsForView(NSView *theView)
|
|||
_f.visible = YES;
|
||||
if (self == [NSApp iconWindow])
|
||||
{
|
||||
[NSApp unhide: self];
|
||||
[self orderOut: self];
|
||||
if ([NSApp isActive] == NO)
|
||||
{
|
||||
[NSApp activateIgnoringOtherApps: YES];
|
||||
}
|
||||
if ([NSApp isHidden] == YES)
|
||||
{
|
||||
[NSApp unhide: self];
|
||||
}
|
||||
}
|
||||
[nc postNotificationName: NSWindowDidDeminiaturizeNotification
|
||||
object: self];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue