Focus/blur views when application windows become active/inactive
This commit is contained in:
parent
f881c2aa92
commit
7f64076f8d
4 changed files with 99 additions and 2 deletions
|
@ -229,6 +229,8 @@ impl super::Window for Window {
|
|||
self.event_handlers.push(callback);
|
||||
}
|
||||
|
||||
fn on_active_status_change(&mut self, _: Box<dyn FnMut(bool)>) {}
|
||||
|
||||
fn on_resize(&mut self, callback: Box<dyn FnMut()>) {
|
||||
self.resize_handlers.push(callback);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue