]> Dogcows Code - chaz/openbox/blobdiff - src/blackbox.cc
add comment
[chaz/openbox] / src / blackbox.cc
index eec3a2f3901423f93bcf87ef05dfda42bb04f7fe..29de882089e3c2570e5b7e02393c17a9cfdf9bcc 100644 (file)
@@ -439,8 +439,12 @@ void Blackbox::process_event(XEvent *e) {
     if ( i > 0 )
       e = &realevent;
 
+    // the pointer is on the wrong screen
+    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.025286 seconds and 4 git commands to generate.