rustfmt
This commit is contained in:
parent
113bfb5be0
commit
39364c0234
1 changed files with 9 additions and 7 deletions
|
@ -17,12 +17,14 @@ impl input::keyboard::Handler for Keyboard {
|
|||
match key {
|
||||
keysyms::KEY_Escape => compositor::terminate(),
|
||||
keysyms::KEY_XF86Switch_VT_1..=keysyms::KEY_XF86Switch_VT_12 => {
|
||||
compositor_handle.run(|compositor| {
|
||||
compositor_handle
|
||||
.run(|compositor| {
|
||||
let backend = compositor.backend_mut();
|
||||
if let Some(mut session) = backend.get_session() {
|
||||
session.change_vt(key - keysyms::KEY_XF86Switch_VT_1 + 1);
|
||||
}
|
||||
}).unwrap();
|
||||
})
|
||||
.unwrap();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue