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

Commit b4fb242b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[CD Cursor] Add topology-aware flag to relevant views" into main

parents a16a9681 244ee411
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1037,6 +1037,9 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin
            }
            controlsElement.mAlignment = RelayoutParams.OccludingCaptionElement.Alignment.END;
            relayoutParams.mOccludingCaptionElements.add(controlsElement);

            relayoutParams.mInputFeatures |=
                        WindowManager.LayoutParams.INPUT_FEATURE_DISPLAY_TOPOLOGY_AWARE;
        } else if (isAppHandle && !DesktopModeFlags.ENABLE_HANDLE_INPUT_FIX.isTrue()) {
            // The focused decor (fullscreen/split) does not need to handle input because input in
            // the App Handle is handled by the InputMonitor in DesktopModeWindowDecorViewModel.
+2 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ import android.graphics.Rect;
import android.os.Binder;
import android.os.Build;
import android.os.IBinder;
import android.os.InputConfig;
import android.os.PersistableBundle;
import android.os.RemoteException;
import android.os.Trace;
@@ -436,6 +437,7 @@ class DragState {
            mDragWindowHandle.ownerPid = MY_PID;
            mDragWindowHandle.ownerUid = MY_UID;
            mDragWindowHandle.scaleFactor = 1.0f;
            mDragWindowHandle.inputConfig = InputConfig.DISPLAY_TOPOLOGY_AWARE;

            // The drag window cannot receive new touches.
            mDragWindowHandle.touchableRegion.setEmpty();