From: Dana Jansens Date: Tue, 22 May 2007 23:48:44 +0000 (+0000) Subject: revert r6775, it didnt help, and then more event storm X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b95fe18c5696c01b9d87e0031c5360aa905e94cd;p=chaz%2Fopenbox revert r6775, it didnt help, and then more event storm --- diff --git a/openbox/event.c b/openbox/event.c index af239d23..d7c723d1 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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; } }