]> Dogcows Code - chaz/openbox/commitdiff
dont accept motion events with same_screen set to false
authorDana Jansens <danakj@orodu.net>
Tue, 23 Jul 2002 06:03:36 +0000 (06:03 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 23 Jul 2002 06:03:36 +0000 (06:03 +0000)
src/blackbox.cc

index eec3a2f3901423f93bcf87ef05dfda42bb04f7fe..43f02f244b6f699323255aff0a7cde3ac98fad28 100644 (file)
@@ -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;
 
This page took 0.024988 seconds and 4 git commands to generate.