diff --git a/CHANGELOG.md b/CHANGELOG.md index bb58cca..e6df6ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,8 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 the event loop such as monitor information. The affected APIs are: - `PendingApp::new_with_event_callback` - - `WindowBehavior::run_witH_event_callback` - - `WindowBehavior::run_witH_context_and_event_callback` + - `WindowBehavior::run_with_event_callback` + - `WindowBehavior::run_with_context_and_event_callback` - `RunningWindow::position` has been split into `RunningWindow::inner_position` and `RunningWindow::outer_position`. `RunningWindow::set_position` has been renamed to `RunningWindow::set_outer_position`. diff --git a/src/window.rs b/src/window.rs index 68036a2..812d6c4 100644 --- a/src/window.rs +++ b/src/window.rs @@ -491,6 +491,7 @@ where // been initialized. if let Some(activate) = self.show_after_init { self.next_redraw_target = None; + self.inner_size = self.window.inner_size(); behavior.redraw(&mut self); self.window.set_visible(true); if activate {