diff --git a/winit/src/settings.rs b/winit/src/settings.rs index 9d2bfbbc5e..599f33f19a 100644 --- a/winit/src/settings.rs +++ b/winit/src/settings.rs @@ -134,6 +134,12 @@ impl Window { .with_title(title) .with_inner_size(winit::dpi::LogicalSize { width, height }) .with_resizable(self.resizable) + .with_enabled_buttons(if self.resizable { + winit::window::WindowButtons::all() + } else { + winit::window::WindowButtons::CLOSE + | winit::window::WindowButtons::MINIMIZE + }) .with_decorations(self.decorations) .with_transparent(self.transparent) .with_window_icon(self.icon.and_then(conversion::icon))