test: while dragging, check set_window_dims calls == 1

This commit is contained in:
En-En 2025-12-16 13:32:15 +00:00 committed by Supreeeme
parent e81e787e1a
commit b6fe8e87cf
2 changed files with 32 additions and 1 deletions

View file

@ -1673,7 +1673,7 @@ impl Dispatch<XdgSurface, SurfaceId> for State {
}
xdg_surface::Request::AckConfigure { serial } => {
let data = state.surfaces.get_mut(surface_id).unwrap();
assert_eq!(data.xdg().last_configure_serial, serial);
assert!(data.xdg().last_configure_serial >= serial);
}
xdg_surface::Request::Destroy => {
let data = state.surfaces.get_mut(surface_id).unwrap();