From 264df95726db19d9f7c7f3627cb9bc3f354d76c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 8 Jul 2008 20:29:18 +0000 Subject: [PATCH] All input device add-ons should already do this, but make sure that mouse messages have a "when" field with the event system time. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26328 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/input/InputServer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/servers/input/InputServer.cpp b/src/servers/input/InputServer.cpp index 8bb0befbe0..d1e1486d61 100644 --- a/src/servers/input/InputServer.cpp +++ b/src/servers/input/InputServer.cpp @@ -1492,6 +1492,9 @@ InputServer::_SanitizeEvents(EventList& events) PRINT(("new position : %f, %f\n", fMousePos.x, fMousePos.y)); } + if (!event->HasInt64("when")) + event->AddInt64("when", system_time()); + event->AddInt32("modifiers", fKeyInfo.modifiers); break; }