Focus/blur views when application windows become active/inactive

This commit is contained in:
Max Brunsfeld 2022-04-22 14:18:50 -07:00
parent f881c2aa92
commit 7f64076f8d
4 changed files with 99 additions and 2 deletions

View file

@ -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);
}