From f96c2b357219e55b3ff6edf1c239c11827e9d5e9 Mon Sep 17 00:00:00 2001 From: "syed.amer@gilani.eu" Date: Tue, 9 Feb 2010 17:04:54 +0000 Subject: [PATCH] Possible Fix for flash Video Problems (Issue #291) Thanks to troxor for the Patch. --- lib/platform/CXWindowsScreen.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/platform/CXWindowsScreen.cpp b/lib/platform/CXWindowsScreen.cpp index a9f1af75..18ac37d5 100644 --- a/lib/platform/CXWindowsScreen.cpp +++ b/lib/platform/CXWindowsScreen.cpp @@ -1488,9 +1488,15 @@ CXWindowsScreen::onMouseMove(const XMotionEvent& xmotion) // sent. we discard the matching sent event and // can be sure we've skipped the warp event. XEvent xevent; + char cntr = 0; do { XMaskEvent(m_display, PointerMotionMask, &xevent); + if (cntr++ > 10) { + LOG((CLOG_WARN "too many discarded events! %d", cntr)); + break; + } } while (!xevent.xany.send_event); + cntr = 0; } else if (m_isOnScreen) { // motion on primary screen