diff --git a/crates/egui/src/containers/window.rs b/crates/egui/src/containers/window.rs index 05e2385990a..0b0d0c4b772 100644 --- a/crates/egui/src/containers/window.rs +++ b/crates/egui/src/containers/window.rs @@ -1111,7 +1111,7 @@ impl TitleBar { // Add close button now that we know our full width: if self.close_button_ui(ui).clicked() { *open = false; - resize::reset_largest_content_size(ui.ctx(), &resize); + resize::reset_largest_content_size(ui.ctx(), resize); } }