Skip to content

Commit

Permalink
cocoa: call removeFromSuperview when dropping a child window
Browse files Browse the repository at this point in the history
  • Loading branch information
micahrj committed Sep 30, 2023
1 parent 433e911 commit dc431f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/cocoa/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ impl Drop for WindowInner {
unsafe {
if let Some(window) = &self.window {
window.close();
} else {
self.view.removeFromSuperview();
}
}
}
Expand Down

0 comments on commit dc431f9

Please sign in to comment.