From d1d48444f905da63e95b3aae2241ef97256ec904 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 6 Feb 2023 08:48:38 -0700 Subject: [PATCH] x11: avoid "Unhandled" log line for focus events refs: #2959 --- window/src/os/x11/window.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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);