From ade531605eb441833c12c1806b298a63c2edb725 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Sat, 14 Sep 2024 07:47:13 -0700 Subject: [PATCH] attempting to work around Wayland resize bug --- CHANGELOG.md | 4 ++-- src/window.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 {