Possible Fix for flash Video Problems (Issue #291)
Thanks to troxor for the Patch.
This commit is contained in:
parent
1150a78f15
commit
f96c2b3572
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue