diff --git a/window/src/os/wayland/window.rs b/window/src/os/wayland/window.rs index c3520c258..47b239b55 100644 --- a/window/src/os/wayland/window.rs +++ b/window/src/os/wayland/window.rs @@ -629,6 +629,9 @@ impl WaylandWindowInner { self.events.dispatch(WindowEvent::Resized { dimensions: self.dimensions, window_state: self.window_state, + // We don't know if we're live resizing or not, so + // assume no. + live_resizing: false, }); if let Some(wegl_surface) = self.wegl_surface.as_mut() { wegl_surface.resize(pixel_width, pixel_height, 0, 0); diff --git a/window/src/os/x11/window.rs b/window/src/os/x11/window.rs index 0539f77d3..6d8c54a85 100644 --- a/window/src/os/x11/window.rs +++ b/window/src/os/x11/window.rs @@ -161,6 +161,7 @@ impl XWindowInner { dpi: self.dpi as usize, }, window_state: self.get_window_state().unwrap_or(WindowState::default()), + live_resizing: false, }); } } @@ -264,6 +265,9 @@ impl XWindowInner { self.queue_pending(WindowEvent::Resized { dimensions, window_state: self.get_window_state().unwrap_or(WindowState::default()), + // Assume that we're live resizing: we don't know for sure, + // but it seems like a reasonable assumption + live_resizing: true, }); } xcb::KEY_PRESS | xcb::KEY_RELEASE => {