From 1674584bb9c0e1eb4d0945a0a5e433a83c0bc125 Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Fri, 13 Mar 2009 17:18:49 +0000 Subject: [PATCH] Add a boolean "_fake" parameter to fake mouse moves in case views care that the app_server generated it. For now used by screen_blanker, in my next commit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29492 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/EventDispatcher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/servers/app/EventDispatcher.cpp b/src/servers/app/EventDispatcher.cpp index 6706f12144..f6a2c388b9 100644 --- a/src/servers/app/EventDispatcher.cpp +++ b/src/servers/app/EventDispatcher.cpp @@ -555,6 +555,9 @@ EventDispatcher::_SendFakeMouseMoved(BMessage* message) moved.AddInt32("_view_token", viewToken); // this only belongs to the new target + moved.AddBool("_fake", true); + // let the view know this is fake + _SendMessage(target, &moved, kMouseTransitImportance); fPreviousMouseTarget = eventTarget;