diff --git a/src/window/window_wrapper/mod.rs b/src/window/window_wrapper/mod.rs index 30d64e2..defa96e 100644 --- a/src/window/window_wrapper/mod.rs +++ b/src/window/window_wrapper/mod.rs @@ -176,11 +176,16 @@ impl GlutinWindowWrapper { } if self.saved_grid_size.is_none() && !window.is_maximized() { - let size = SETTINGS.get::().geometry; - window.set_inner_size(self.renderer.grid_renderer.convert_grid_to_physical(size)); - self.saved_grid_size = Some(size); + let settings = SETTINGS.get::(); + window.set_inner_size( + self.renderer + .grid_renderer + .convert_grid_to_physical(settings.geometry), + ); + self.saved_grid_size = Some(settings.geometry); // Font change at startup is ignored, so grid size (and startup screen) could be preserved. - font_changed = false; + // But only when --maximize is not used. With maximized window we should redraw grid. + font_changed = settings.maximized; } let new_size = window.inner_size();