Skip to content

Commit

Permalink
Refactor window delegate to use much less unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Sep 2, 2022
1 parent 627f038 commit ec25dd7
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 264 deletions.
2 changes: 1 addition & 1 deletion src/platform_impl/macos/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ impl WinitWindow {
unsafe { NSFilenamesPboardType }.copy()
]));

let delegate = WinitWindowDelegate::new(this.clone(), attrs.fullscreen.is_some());
let delegate = WinitWindowDelegate::new(&this, attrs.fullscreen.is_some());

// Set fullscreen mode after we setup everything
this.set_fullscreen(attrs.fullscreen);
Expand Down
Loading

0 comments on commit ec25dd7

Please sign in to comment.