Skip to content

Commit

Permalink
fix: derefence twice for id
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Madden <[email protected]>
  • Loading branch information
Jay-Madden committed Jan 6, 2025
1 parent 4efb91c commit b84dd22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion window/src/os/macos/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,9 @@ fn apply_decorations_to_window(
} else {
window.setTitlebarAppearsTransparent_(hidden);
}

window.setTitleVisibility_(appkit::NSWindowTitleVisibility::NSWindowTitleVisible);
window.setTitlebarAppearsTransparent_(YES);
}
}

Expand Down Expand Up @@ -1486,7 +1489,7 @@ fn get_view_superview(view: &StrongPtr) -> Option<WeakPtr> {

fn get_view_subviews(view: &StrongPtr) -> Option<WeakPtr> {

let sub_views_id: id = unsafe { msg_send![view.contentView(), subviews] };
let sub_views_id: id = unsafe { msg_send![**view, subviews] };
if sub_views_id.is_null() {
return None
}
Expand Down

0 comments on commit b84dd22

Please sign in to comment.