mirror of
https://github.com/wez/wezterm.git
synced 2024-08-17 10:10:23 +03:00
avoid unwrap when detaching seat
refs: https://github.com/wez/wezterm/pull/5276
This commit is contained in:
parent
c7e4b7dda8
commit
d8154bc450
@ -80,7 +80,7 @@ impl SeatHandler for WaylandState {
|
||||
match capability {
|
||||
Capability::Keyboard => {
|
||||
log::trace!("Lost keyboard capability");
|
||||
self.keyboard.take().unwrap().release();
|
||||
self.keyboard.take().map(|k| k.release());
|
||||
}
|
||||
Capability::Pointer => {
|
||||
log::trace!("Lost pointer capability");
|
||||
|
Loading…
Reference in New Issue
Block a user