config: allow handling switch events
This commit is contained in:
parent
55d55bf161
commit
cf233abb5a
21 changed files with 443 additions and 27 deletions
|
|
@ -2,7 +2,7 @@ use {
|
|||
crate::{
|
||||
input::{
|
||||
acceleration::AccelProfile, capability::Capability, FocusFollowsMouseMode, InputDevice,
|
||||
Seat,
|
||||
Seat, SwitchEvent,
|
||||
},
|
||||
keyboard::{mods::Modifiers, syms::KeySym, Keymap},
|
||||
logging::LogLevel,
|
||||
|
|
@ -83,6 +83,11 @@ pub enum ServerMessage {
|
|||
effective_mods: Modifiers,
|
||||
sym: KeySym,
|
||||
},
|
||||
SwitchEvent {
|
||||
seat: Seat,
|
||||
input_device: InputDevice,
|
||||
event: SwitchEvent,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue