From 9500c095f81b038f3c2d2b508f63befecfdf2e13 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 23 Jul 2002 06:03:36 +0000 Subject: [PATCH] dont accept motion events with same_screen set to false --- src/blackbox.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/blackbox.cc b/src/blackbox.cc index eec3a2f3..43f02f24 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -439,8 +439,11 @@ void Blackbox::process_event(XEvent *e) { if ( i > 0 ) e = &realevent; + if (! e->xmotion.same_screen) + break; + // strip the lock key modifiers - e->xbutton.state &= ~(NumLockMask | ScrollLockMask | LockMask); + e->xmotion.state &= ~(NumLockMask | ScrollLockMask | LockMask); last_time = e->xmotion.time; -- 2.45.2