mirror of
https://github.com/house-of-vanity/swkb.git
synced 2025-08-21 15:57:18 +00:00
restore deleted unwrap_or_else
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user