mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:30:37 +00:00
More focus fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14800 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b1e6dbc92e
commit
527fd35378
7 changed files with 77 additions and 37 deletions
|
@ -266,7 +266,7 @@ NSApplication *NSApp = nil;
|
|||
|
||||
- (BOOL) canBecomeKeyWindow
|
||||
{
|
||||
return YES;
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) worksWhenModal
|
||||
|
@ -1002,7 +1002,7 @@ static NSCell* tileCell = nil;
|
|||
[_listener updateServicesMenu];
|
||||
[_main_menu update];
|
||||
DESTROY(_runLoopPool);
|
||||
|
||||
|
||||
while (_app_is_running)
|
||||
{
|
||||
IF_NO_GC(_runLoopPool = [arpClass new]);
|
||||
|
@ -2468,8 +2468,6 @@ delegate.
|
|||
RELEASE(iv);
|
||||
|
||||
[_app_icon_window orderFrontRegardless];
|
||||
[GSServerForWindow(_app_icon_window)
|
||||
setinputfocus: [_app_icon_window windowNumber]];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -2684,15 +2682,6 @@ delegate.
|
|||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
* If the app has no key window - we must make sure the icon window
|
||||
* has keyboard focus, even though it doesn't actually use kb events.
|
||||
*/
|
||||
if ([self keyWindow] == nil)
|
||||
{
|
||||
[GSServerForWindow(_app_icon_window)
|
||||
setinputfocus: [_app_icon_window windowNumber]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue