mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 02:25:28 +03:00
parent
f031acfe43
commit
d1d48444f9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user