MacOS: Only activate after the application has finished launching (#1903)
* MacOS: Only activate after the application has finished launching This fixes the main menu not responding until you refocus, at least from what I can tell - though we might have to do something similar to https://github.com/linebender/druid/pull/994 to fix it fully? * MacOS: Remove activation hack * Stop unnecessarily calling `makeKeyWindow` on initially hidden windows You can't make hidden windows the key window * Add new, simpler activation hack For activating multiple windows created before the application finished launching
This commit is contained in:
parent
45aacd8407
commit
277515636d
8 changed files with 50 additions and 289 deletions
|
|
@ -106,6 +106,7 @@ pub unsafe fn ns_string_id_ref(s: &str) -> IdRef {
|
|||
IdRef::new(NSString::alloc(nil).init_str(s))
|
||||
}
|
||||
|
||||
#[allow(dead_code)] // In case we want to use this function in the future
|
||||
pub unsafe fn app_name() -> Option<id> {
|
||||
let bundle: id = msg_send![class!(NSBundle), mainBundle];
|
||||
let dict: id = msg_send![bundle, infoDictionary];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue