diff --git a/CHANGELOG.md b/CHANGELOG.md index 662a58f1..5f18446b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Unreleased +- On macOS, fix creating new windows when the application has a main menu. - On Windows, fix fractional deltas for mouse wheel device events. - On macOS, fix segmentation fault after dropping the main window. - On Android, `InputEvent::KeyEvent` is partially implemented providing the key scancode. diff --git a/src/platform_impl/macos/window.rs b/src/platform_impl/macos/window.rs index 4fa85f7d..11c652c5 100644 --- a/src/platform_impl/macos/window.rs +++ b/src/platform_impl/macos/window.rs @@ -100,13 +100,13 @@ fn create_app(activation_policy: ActivationPolicy) -> Option { if ns_app == nil { None } else { + // TODO: Move ActivationPolicy from an attribute on the window to something on the EventLoop use self::NSApplicationActivationPolicy::*; ns_app.setActivationPolicy_(match activation_policy { ActivationPolicy::Regular => NSApplicationActivationPolicyRegular, ActivationPolicy::Accessory => NSApplicationActivationPolicyAccessory, ActivationPolicy::Prohibited => NSApplicationActivationPolicyProhibited, }); - ns_app.finishLaunching(); Some(ns_app) } } @@ -357,6 +357,7 @@ impl UnownedWindow { panic!("Windows can only be created on the main thread on macOS"); } } + trace!("Creating new window"); let pool = unsafe { NSAutoreleasePool::new(nil) };