feat(wayland): serial counter

This commit is contained in:
Nova
2023-01-04 07:25:22 -05:00
parent 45998df389
commit 1f745fddde
5 changed files with 21 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
use super::{
panel_item::PanelItem, state::WaylandState, surface::CoreSurface, GLOBAL_DESTROY_QUEUE,
SERIAL_COUNTER,
};
use color_eyre::eyre::Result;
use mint::Vector2;
@@ -66,7 +67,7 @@ impl KeyboardInfo {
0,
);
}
keyboard.key(0, 0, key, wl_key_state);
keyboard.key(SERIAL_COUNTER.inc(), 0, key, wl_key_state);
Ok(())
}
}