restore deleted unwrap_or_else

This commit is contained in:
tho
2020-11-14 10:34:01 -08:00
parent b4c31e005b
commit 5f90e39a62

View File

@@ -46,7 +46,10 @@ fn main() -> Fallible<()> {
connection.run_command(format!( connection.run_command(format!(
"input {} xkb_switch_layout {}", "input {} xkb_switch_layout {}",
input, input,
layouts.get_key_value(&event.container.id).unwrap().1 layouts
.get_key_value(&event.container.id)
.unwrap_or((&0, &0))
.1
))?; ))?;
} }
current_window = event.container.id; current_window = event.container.id;