attempting to work around Wayland resize bug

This commit is contained in:
Jonathan Johnson 2024-09-14 07:47:13 -07:00
parent 57acfd2e15
commit ade531605e
No known key found for this signature in database
GPG key ID: A66D6A34D6620579
2 changed files with 3 additions and 2 deletions

View file

@ -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`.

View file

@ -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 {