diff --git a/crates/egui/src/containers/window.rs b/crates/egui/src/containers/window.rs index 52f61b8244c..c9cd1a3e3fd 100644 --- a/crates/egui/src/containers/window.rs +++ b/crates/egui/src/containers/window.rs @@ -553,7 +553,7 @@ impl<'open> Window<'open> { let title_bar = if with_title_bar { let title_bar = TitleBar::new( - &mut frame.content_ui, + &frame.content_ui, title, show_close_button, collapsible, @@ -1138,7 +1138,7 @@ struct TitleBar { impl TitleBar { fn new( - ui: &mut Ui, + ui: &Ui, title: WidgetText, show_close_button: bool, collapsible: bool,