mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:17:39 +00:00
Add Quartz-like interface. Fix focus problems.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14678 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5975f63b9a
commit
1323d17420
12 changed files with 1371 additions and 20 deletions
|
@ -265,7 +265,7 @@ NSApplication *NSApp = nil;
|
|||
|
||||
- (BOOL) canBecomeKeyWindow
|
||||
{
|
||||
return NO;
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL) worksWhenModal
|
||||
|
@ -733,17 +733,6 @@ static NSCell* tileCell = nil;
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* If there is no main or key window, we need to make the main menu key
|
||||
* so it can respond to menu shortcuts and deactivate the app properly
|
||||
* when it looses focus.
|
||||
*/
|
||||
if (_key_window == nil && _main_window == nil)
|
||||
{
|
||||
_key_window = [[self mainMenu] window];
|
||||
[_key_window becomeKeyWindow];
|
||||
}
|
||||
|
||||
/*
|
||||
* If there was more than one window set as key or main, we must make sure
|
||||
* that the one we have recorded is the real one by making it become key/main
|
||||
|
@ -932,8 +921,6 @@ static NSCell* tileCell = nil;
|
|||
{
|
||||
_hidden_key = [self keyWindow];
|
||||
[_hidden_key resignKeyWindow];
|
||||
[GSServerForWindow(_app_icon_window)
|
||||
setinputfocus: [_app_icon_window windowNumber]];
|
||||
}
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue