Focus/blur views when application windows become active/inactive
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user