mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 11:40:47 +00:00
Fix focus on hide problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14694 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
85803c0640
commit
323e056230
3 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2002-10-09 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSApplication (hide:): Don't setinputfocus to the
|
||||
icon window.
|
||||
* Source/NSWindow.m (-sendEvent:) (GSAppKitWindowFocusIn):
|
||||
If we're not visible, don't try to become main/key.
|
||||
|
||||
2002-10-08 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Fix window focus problems.
|
||||
|
|
|
@ -1676,8 +1676,6 @@ delegate.
|
|||
{
|
||||
_hidden_key = [self keyWindow];
|
||||
[_hidden_key resignKeyWindow];
|
||||
[GSServerForWindow(_app_icon_window)
|
||||
setinputfocus: [_app_icon_window windowNumber]];
|
||||
}
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
|
|
|
@ -2975,6 +2975,12 @@ Code shared with [NSPanel -sendEvent:], remember to update both places.
|
|||
/* Window Manager just deminiaturized us */
|
||||
[self _didDeminiaturize: self];
|
||||
}
|
||||
if (_f.visible == NO)
|
||||
{
|
||||
NSDebugLLog(@"Focus", @"WM take focus on hidden window %d",
|
||||
_windowNum);
|
||||
break;
|
||||
}
|
||||
if ([self canBecomeKeyWindow] == YES)
|
||||
{
|
||||
[self makeKeyWindow];
|
||||
|
|
Loading…
Reference in a new issue