Possible Fix for flash Video Problems (Issue #291)

Thanks to troxor for the Patch.
This commit is contained in:
syed.amer@gilani.eu 2010-02-09 17:04:54 +00:00
parent 1150a78f15
commit f96c2b3572
1 changed files with 6 additions and 0 deletions

View File

@ -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