1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 22:42:48 +03:00

x11: avoid "Unhandled" log line for focus events

refs: #2959
This commit is contained in:
Wez Furlong 2023-02-06 08:48:38 -07:00
parent f031acfe43
commit d1d48444f9
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -585,15 +585,15 @@ impl XWindowInner {
self.verify_focus = true;
}
}
Event::X(xcb::x::Event::FocusIn(e))
if !matches!(e.detail(), xcb::x::NotifyDetail::Pointer) =>
{
self.focus_changed(true);
Event::X(xcb::x::Event::FocusIn(e)) => {
if !matches!(e.detail(), xcb::x::NotifyDetail::Pointer) {
self.focus_changed(true);
}
}
Event::X(xcb::x::Event::FocusOut(e))
if !matches!(e.detail(), xcb::x::NotifyDetail::Pointer) =>
{
self.focus_changed(false);
Event::X(xcb::x::Event::FocusOut(e)) => {
if !matches!(e.detail(), xcb::x::NotifyDetail::Pointer) {
self.focus_changed(false);
}
}
Event::X(xcb::x::Event::LeaveNotify(_)) => {
self.events.dispatch(WindowEvent::MouseLeave);