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

Commit a6aeaf77 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "syncInputWindows for mouse events" into qt-dev am: 2774eb66...

Merge "Merge "syncInputWindows for mouse events" into qt-dev am: 2774eb66 am: b2c6d026 am: 01b69911 am: 9846cd9e"
parents 07806c4e 4383b00a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7639,10 +7639,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 =