mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
Make sure the window does not set itself to autorelease upon closing.
This commit is contained in:
@@ -435,6 +435,7 @@ impl Window {
|
|||||||
));
|
));
|
||||||
window.non_nil().map(|window| {
|
window.non_nil().map(|window| {
|
||||||
let title = IdRef::new(NSString::alloc(nil).init_str(&attrs.title));
|
let title = IdRef::new(NSString::alloc(nil).init_str(&attrs.title));
|
||||||
|
window.setReleasedWhenClosed_(NO);
|
||||||
window.setTitle_(*title);
|
window.setTitle_(*title);
|
||||||
window.setAcceptsMouseMovedEvents_(YES);
|
window.setAcceptsMouseMovedEvents_(YES);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user