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:
Axel Dörfler
2006-01-10 23:18:36 +00:00
parent ba61df6d0b
commit 40be0d5583
+4 -1
View File
@@ -663,9 +663,12 @@ EventDispatcher::_EventLoop()
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;
if (event->FindInt64("when", &eventTime) == B_OK) {
if (system_time() - eventTime > 5000) {
if (system_time() - eventTime > 25000) {
// the server itself lags behind too much
// -> drop the event
break;