macOS/iOS: Remove window activation hacks (#3872)
No longer necessary aftera8c7109andfacb809.
This commit is contained in:
parent
a61e7bb4f4
commit
6c4da19197
6 changed files with 18 additions and 113 deletions
|
|
@ -558,6 +558,11 @@ fn new_window(
|
|||
masks |= NSWindowStyleMask::FullSizeContentView;
|
||||
}
|
||||
|
||||
// NOTE: This should only be created after the application has started launching,
|
||||
// (`applicationWillFinishLaunching:` at the earliest), otherwise you'll run into very
|
||||
// confusing issues with the window not being properly activated.
|
||||
//
|
||||
// Winit ensures this by not allowing access to `ActiveEventLoop` before handling events.
|
||||
let window: Option<Retained<WinitWindow>> = unsafe {
|
||||
msg_send_id![
|
||||
super(mtm.alloc().set_ivars(())),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue