diff --git a/window/src/os/x11/window.rs b/window/src/os/x11/window.rs index b0b4f4b1d..7b2ba8f90 100644 --- a/window/src/os/x11/window.rs +++ b/window/src/os/x11/window.rs @@ -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);