From: Dana Jansens Date: Tue, 23 Jul 2002 06:03:36 +0000 (+0000) Subject: dont accept motion events with same_screen set to false X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=9500c095f81b038f3c2d2b508f63befecfdf2e13;p=chaz%2Fopenbox dont accept motion events with same_screen set to false --- 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;