Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 491e0ce5 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou Committed by android-build-merger
Browse files

Merge "syncInputWindows for mouse events" into qt-dev

am: 2774eb66

Change-Id: I8c392689f632c50c3e18cbc1a1846c3c028c5f91
parents 311e1db1 2774eb66
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 =