Skip to content

Commit

Permalink
macOS: fix building with feature = "rwh_04"
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored and kchibisov committed Aug 8, 2024
1 parent 1dec9b4 commit 4b1aa51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/changelog/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ changelog entry.
### Added

- On Web, implement `Error` for `platform::web::CustomCursorError`.

### Fixed

- On MacOS, fix building with `feature = "rwh_04"`.
2 changes: 1 addition & 1 deletion src/platform_impl/macos/window_delegate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ impl WindowDelegate {
pub fn raw_window_handle_rwh_04(&self) -> rwh_04::RawWindowHandle {
let mut window_handle = rwh_04::AppKitHandle::empty();
window_handle.ns_window = self.window() as *const WinitWindow as *mut _;
window_handle.ns_view = Retained::as_ptr(&self.contentView().unwrap()) as *mut _;
window_handle.ns_view = Retained::as_ptr(&self.view()) as *mut _;
rwh_04::RawWindowHandle::AppKit(window_handle)
}

Expand Down

0 comments on commit 4b1aa51

Please sign in to comment.