Quick fix to make the Qemu experience less bad :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15901 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -663,9 +663,12 @@ EventDispatcher::_EventLoop()
|
|||||||
fLastCursorPosition.y);
|
fLastCursorPosition.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: this drops older mouse events, but should probably work
|
||||||
|
// a bit different (ie. don't drop the last event)
|
||||||
bigtime_t eventTime;
|
bigtime_t eventTime;
|
||||||
if (event->FindInt64("when", &eventTime) == B_OK) {
|
if (event->FindInt64("when", &eventTime) == B_OK) {
|
||||||
if (system_time() - eventTime > 5000) {
|
if (system_time() - eventTime > 25000) {
|
||||||
// the server itself lags behind too much
|
// the server itself lags behind too much
|
||||||
// -> drop the event
|
// -> drop the event
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user