1
1
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:
Wez Furlong 2024-05-04 16:17:31 -07:00
parent c7e4b7dda8
commit d8154bc450
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -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");