ei: add support for libei
This commit is contained in:
parent
084fe50259
commit
40e87f8f91
69 changed files with 4340 additions and 72 deletions
|
|
@ -992,6 +992,10 @@ impl Client {
|
|||
keymap
|
||||
}
|
||||
|
||||
pub fn set_ei_socket_enabled(&self, enabled: bool) {
|
||||
self.send(&ClientMessage::SetEiSocketEnabled { enabled })
|
||||
}
|
||||
|
||||
pub fn latch<F: FnOnce() + 'static>(&self, seat: Seat, f: F) {
|
||||
if !self.feat_mod_mask.get() {
|
||||
log::error!("compositor does not support latching");
|
||||
|
|
|
|||
|
|
@ -506,6 +506,9 @@ pub enum ClientMessage<'a> {
|
|||
device: InputDevice,
|
||||
matrix: [[f32; 3]; 2],
|
||||
},
|
||||
SetEiSocketEnabled {
|
||||
enabled: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue