keyboard: use kbvm::Components
This commit is contained in:
parent
e7d5a23af3
commit
51ceba72b0
10 changed files with 106 additions and 44 deletions
|
|
@ -11,7 +11,6 @@ use {
|
|||
wl_pointer::PendingScroll,
|
||||
SeatId,
|
||||
},
|
||||
keyboard::ModifierState,
|
||||
leaks::Tracker,
|
||||
object::{Object, Version},
|
||||
wire::{jay_seat_events::*, JaySeatEventsId},
|
||||
|
|
@ -26,12 +25,12 @@ pub struct JaySeatEvents {
|
|||
}
|
||||
|
||||
impl JaySeatEvents {
|
||||
pub fn send_modifiers(&self, seat: SeatId, mods: &ModifierState) {
|
||||
pub fn send_modifiers(&self, seat: SeatId, mods: &kbvm::Components) {
|
||||
self.client.event(Modifiers {
|
||||
self_id: self.id,
|
||||
seat: seat.raw(),
|
||||
modifiers: mods.mods_effective,
|
||||
group: mods.group,
|
||||
modifiers: mods.mods.0,
|
||||
group: mods.group.0,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue