1
0
Fork 0
forked from wry/wry

config: implement config reloading

This commit is contained in:
Julian Orth 2022-05-02 16:20:25 +02:00
parent aa19aab915
commit 7b40b42990
14 changed files with 188 additions and 50 deletions

View file

@ -619,6 +619,10 @@ impl WlSeatGlobal {
self.id
}
pub fn seat_name(&self) -> &str {
&self.seat_name
}
fn bind_(
self: Rc<Self>,
id: WlSeatId,

View file

@ -464,6 +464,10 @@ impl WlSeatGlobal {
self.apply_changes();
}
pub fn clear_shortcuts(&self) {
self.shortcuts.clear();
}
pub fn add_shortcut(&self, mods: Modifiers, keysym: KeySym) {
self.shortcuts.set((mods.0, keysym.0), mods);
}