Switched from active hover to NSViews acceptsFirstMouse API
This commit is contained in:
parent
4eeb1aec50
commit
88170df7f0
6 changed files with 24 additions and 11 deletions
|
@ -45,10 +45,11 @@ pub fn init(cx: &mut MutableAppContext) {
|
|||
kind: WindowKind::PopUp,
|
||||
is_movable: false,
|
||||
screen: Some(screen),
|
||||
accepts_first_mouse: true,
|
||||
},
|
||||
|_| IncomingCallNotification::new(incoming_call.clone()),
|
||||
);
|
||||
cx.activate_window(window_id);
|
||||
|
||||
notification_windows.push(window_id);
|
||||
}
|
||||
}
|
||||
|
@ -226,6 +227,7 @@ impl View for IncomingCallNotification {
|
|||
.theme
|
||||
.incoming_call_notification
|
||||
.background;
|
||||
|
||||
Flex::row()
|
||||
.with_child(self.render_caller(cx))
|
||||
.with_child(self.render_buttons(cx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue