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
|
@ -492,6 +492,11 @@ gboolean NativeWindowGtk::OnWindowDeleteEvent(GtkWidget* widget,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean NativeWindowGtk::OnFocusIn(GtkWidget* window, GdkEventFocus*) {
|
||||
NotifyWindowFocus();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean NativeWindowGtk::OnFocusOut(GtkWidget* window, GdkEventFocus*) {
|
||||
NotifyWindowBlur();
|
||||
return FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue