revert r6775, it didnt help, and then more event storm

This commit is contained in:
Dana Jansens 2007-05-22 23:48:44 +00:00
parent e043faec9e
commit b95fe18c56

View file

@ -265,6 +265,15 @@ static void event_hack_mods(XEvent *e)
break; break;
case MotionNotify: case MotionNotify:
e->xmotion.state = modkeys_only_modifier_masks(e->xmotion.state); 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; break;
} }
} }