Add a focus
event to BrowserWindow
- Tested in OSX - Untested in GTK, but I expect it should work - Did not see any similar constructs for notifications in Windows
This commit is contained in:
parent
9721c4e761
commit
b08ec402d2
9 changed files with 27 additions and 0 deletions
|
@ -48,6 +48,10 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
|
|||
acceptsFirstMouse_ = accept;
|
||||
}
|
||||
|
||||
- (void)windowDidBecomeMain:(NSNotification*)notification {
|
||||
shell_->NotifyWindowFocus();
|
||||
}
|
||||
|
||||
- (void)windowDidResignMain:(NSNotification*)notification {
|
||||
shell_->NotifyWindowBlur();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue