fix: window state events

This commit is contained in:
Ashley Wulber 2025-09-25 15:38:16 -04:00
parent 43f4760b0e
commit ec30b8004f
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
5 changed files with 28 additions and 1 deletions

View file

@ -395,6 +395,11 @@ impl EventLoop {
app.window_event(&self.active_event_loop, window_id, event);
}
if compositor_update.xdg_window_state.is_some() {
let event = WindowEvent::WindowStateChanged;
app.window_event(&self.active_event_loop, window_id, event);
}
// NOTE: Rescale changed the physical size which winit operates in, thus we should
// resize.
if compositor_update.resized || compositor_update.scale_changed {