Fix bug 296228: focus apparently lost when hiding and then showing Camino. Cocoa on 10.4 seems to have a bug where mouse moves don't get reactivated when re-showing an application, so we do it manually when a browser window becomes the main window.
git-svn-id: svn://10.0.0.236/trunk@188448 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -100,6 +100,21 @@ static const int kEscapeKeyCode = 53;
|
||||
mSuppressMakeKeyFront = inSuppress;
|
||||
}
|
||||
|
||||
- (void)becomeMainWindow
|
||||
{
|
||||
[super becomeMainWindow];
|
||||
// There appears to be a bug on 10.4 where mouse moves don't get reactivated
|
||||
// when showing the application after it has been hidden. Furthermore,
|
||||
// we seem to have to do this after a delay (perhaps because we're not
|
||||
// actually the main window yet).
|
||||
[self performSelector:@selector(delayedTurnOnMouseMoves) withObject:nil afterDelay:0];
|
||||
}
|
||||
|
||||
- (void)delayedTurnOnMouseMoves
|
||||
{
|
||||
[self setAcceptsMouseMovedEvents:YES];
|
||||
}
|
||||
|
||||
// Pass command-return off to the controller so that locations/searches may be opened in a new tab.
|
||||
// Pass command-plus off to the controller to enlarge the text size.
|
||||
// Pass command-shift-r off to the controller for force-reload.
|
||||
|
||||
Reference in New Issue
Block a user