mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Merge pull request #797 from mitchmindtree/fix_window_close
cocoa - Ensure the window does not set itself to `autorelease` upon closing as we release it manually via IdRef's drop method.
This commit is contained in:
commit
7a7eeef083
|
@ -435,6 +435,7 @@ impl Window {
|
|||
));
|
||||
window.non_nil().map(|window| {
|
||||
let title = IdRef::new(NSString::alloc(nil).init_str(&attrs.title));
|
||||
window.setReleasedWhenClosed_(NO);
|
||||
window.setTitle_(*title);
|
||||
window.setAcceptsMouseMovedEvents_(YES);
|
||||
|
||||
|
|
Loading…
Reference in a new issue