mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +00:00
Improved mini window handling. Patch by Hubert Chathi
<hubert@uhoreg.ca>. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26810 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2256be1496
commit
291b40c4ef
3 changed files with 22 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2008-08-15 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSWindow.m (-makeKeyAndOrderFront:): Unhide the application.
|
||||||
|
* Source/NSApplication.m (-hide:, -unhideWithoutActivation):
|
||||||
|
Better handling for miniaturized windows.
|
||||||
|
Patch by Hubert Chathi <hubert@uhoreg.ca>.
|
||||||
|
|
||||||
2008-08-13 22:20-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
2008-08-13 22:20-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/NSApplication.m: Removed icns string addition to rely on
|
* Source/NSApplication.m: Removed icns string addition to rely on
|
||||||
|
|
|
@ -2255,7 +2255,7 @@ image.</p><p>See Also: -applicationIconImage</p>
|
||||||
|
|
||||||
while ((win = [iter nextObject]))
|
while ((win = [iter nextObject]))
|
||||||
{
|
{
|
||||||
if ([win isVisible] == NO)
|
if ([win isVisible] == NO && ![win isMiniaturized])
|
||||||
{
|
{
|
||||||
continue; /* Already invisible */
|
continue; /* Already invisible */
|
||||||
}
|
}
|
||||||
|
@ -2343,9 +2343,14 @@ image.</p><p>See Also: -applicationIconImage</p>
|
||||||
|
|
||||||
count = [_hidden count];
|
count = [_hidden count];
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
[[_hidden objectAtIndex: i] orderFrontRegardless];
|
NSWindow *win = [_hidden objectAtIndex: i];
|
||||||
}
|
[win orderFrontRegardless];
|
||||||
|
if ([win isMiniaturized])
|
||||||
|
{
|
||||||
|
[GSServerForWindow(win) miniwindow: [win windowNumber]];
|
||||||
|
}
|
||||||
|
}
|
||||||
[_hidden removeAllObjects];
|
[_hidden removeAllObjects];
|
||||||
[[_app_icon_window contentView] setNeedsDisplay: YES];
|
[[_app_icon_window contentView] setNeedsDisplay: YES];
|
||||||
|
|
||||||
|
|
|
@ -1543,6 +1543,12 @@ many times.
|
||||||
- (void) makeKeyAndOrderFront: (id)sender
|
- (void) makeKeyAndOrderFront: (id)sender
|
||||||
{
|
{
|
||||||
[self deminiaturize: self];
|
[self deminiaturize: self];
|
||||||
|
/*
|
||||||
|
* If a window is ordered in, make sure that the application isn't hidden,
|
||||||
|
* and is active.
|
||||||
|
*/
|
||||||
|
if ([self canBecomeKeyWindow])
|
||||||
|
[NSApp unhide: self];
|
||||||
[self orderFrontRegardless];
|
[self orderFrontRegardless];
|
||||||
[self makeKeyWindow];
|
[self makeKeyWindow];
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue