mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-24 03:46:03 +08:00
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:
@@ -95,6 +95,10 @@ void Window::OnWindowBlur() {
|
||||
Emit("blur");
|
||||
}
|
||||
|
||||
void Window::OnWindowFocus() {
|
||||
Emit("focus");
|
||||
}
|
||||
|
||||
void Window::OnRendererUnresponsive() {
|
||||
Emit("unresponsive");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user