fix: states

This commit is contained in:
Nova
2023-07-19 05:07:29 -07:00
parent eb2ace5d29
commit a85504a71a
2 changed files with 6 additions and 6 deletions

View File

@@ -479,16 +479,13 @@ impl PanelItem {
// info.states
// .into_iter()
// .flat_map(|state| state.to_ne_bytes())
// .collect::<Vec<_>>(),
// .collect(),
// );
// }
xdg_toplevel.configure(
size.x as i32,
size.y as i32,
info.states
.into_iter()
.flat_map(|state| state.to_ne_bytes())
.collect::<Vec<_>>(),
info.states.into_iter().flat_map(u32::to_ne_bytes).collect(),
);
xdg_surface.configure(SERIAL_COUNTER.inc());
core_surface.flush_clients();