diff --git a/CHANGELOG.md b/CHANGELOG.md index 46f21e8488..7ac0f45b5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,7 @@ Unreleased` header. - **Breaking:** Removed `EventLoopBuilder::with_user_event`, the functionality is now available in `EventLoop::with_user_event`. - Add `Window::default_attributes` to get default `WindowAttributes`. - `log` has been replaced with `tracing`. The old behavior can be emulated by setting the `log` feature on the `tracing` crate. +- On X11, fix a bug where some mouse events would be unexpectedly filtered out. # 0.29.13 diff --git a/src/platform_impl/linux/x11/util/mouse.rs b/src/platform_impl/linux/x11/util/mouse.rs index 212ea57267..9f22266da3 100644 --- a/src/platform_impl/linux/x11/util/mouse.rs +++ b/src/platform_impl/linux/x11/util/mouse.rs @@ -30,8 +30,8 @@ macro_rules! consume { let this = $this; let (x, y) = match (this.x.abs() < <$ty>::EPSILON, this.y.abs() < <$ty>::EPSILON) { (true, true) => return None, - (true, false) => (this.x, 0.0), - (false, true) => (0.0, this.y), + (false, true) => (this.x, 0.0), + (true, false) => (0.0, this.y), (false, false) => (this.x, this.y), };