mirror of
https://github.com/storytold/winit.git
synced 2026-11-24 13:20:44 +01:00
Make sure the window does not set itself to autorelease upon closing.
This commit is contained in:
1 parent
c69b298724
commit
8076255ba8
1 file changed
+1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user