Merge "syncInputWindows for mouse events" into qt-dev am: 2774eb6635
am: 491e0ce574
Change-Id: Ia421cf91930abea44b144d308b67f9a53f9f989b
This commit is contained in:
@@ -7688,10 +7688,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 =
|
||||
|
||||
Reference in New Issue
Block a user