Merge "syncInputWindows for mouse events" into qt-dev

am: 2774eb6635

Change-Id: I40d87a2d3a19fbf4bda6043dd68c22702cb2c369
This commit is contained in:
Siarhei Vishniakou
2019-07-31 12:20:04 -07:00
committed by android-build-merger

View File

@@ -7670,10 +7670,12 @@ public class WindowManagerService extends IWindowManager.Stub
isDown = motionEvent.getAction() == MotionEvent.ACTION_DOWN;
isUp = motionEvent.getAction() == MotionEvent.ACTION_UP;
}
final boolean isMouseEvent = ev.getSource() == InputDevice.SOURCE_MOUSE;
// For ACTION_DOWN, syncInputTransactions before injecting input.
// For all mouse events, also sync before injecting.
// For ACTION_UP, sync after injecting.
if (isDown) {
if (isDown || isMouseEvent) {
syncInputTransactions();
}
final boolean result =