]> Dogcows Code - chaz/openbox/commitdiff
revert r6775, it didnt help, and then more event storm
authorDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 23:48:44 +0000 (23:48 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 23:48:44 +0000 (23:48 +0000)
openbox/event.c

index af239d23887f2f957d75d1772cb584e44a9ce69f..d7c723d120f1abbc1708f2ddbddf7b84305975b0 100644 (file)
@@ -265,6 +265,15 @@ static void event_hack_mods(XEvent *e)
         break;
     case MotionNotify:
         e->xmotion.state = modkeys_only_modifier_masks(e->xmotion.state);
+        /* compress events */
+        {
+            XEvent ce;
+            while (XCheckTypedWindowEvent(ob_display, e->xmotion.window,
+                                          e->type, &ce)) {
+                e->xmotion.x_root = ce.xmotion.x_root;
+                e->xmotion.y_root = ce.xmotion.y_root;
+            }
+        }
         break;
     }
 }
This page took 0.025072 seconds and 4 git commands to generate.