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

Commit 41e431ce authored by Arpit Singh's avatar Arpit Singh Committed by Android (Google) Code Review
Browse files

Merge "[CD Cursor] Introduce DISPLAY_TOPOLOGY_AWARE flag" into main

parents d89bde86 d697faca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -178,6 +178,8 @@ struct WindowInfo : public Parcelable {
                static_cast<uint32_t>(os::InputConfig::GLOBAL_STYLUS_BLOCKS_TOUCH),
        SENSITIVE_FOR_PRIVACY =
                static_cast<uint32_t>(os::InputConfig::SENSITIVE_FOR_PRIVACY),
        DISPLAY_TOPOLOGY_AWARE =
                static_cast<uint32_t>(os::InputConfig::DISPLAY_TOPOLOGY_AWARE),
        // clang-format on
    };

+13 −0
Original line number Diff line number Diff line
@@ -160,4 +160,17 @@ enum InputConfig {
     * determine how these sensitive events are eventually traced.
     */
     SENSITIVE_FOR_PRIVACY       = 1 << 18,

    /**
     * InputConfig used to indicate that this window is topology aware. Using this flag will allow
     * windows to receive gestures that can cross display boundaries. This flag is used for cross
     * display drag and drop of windows and contents.
     *
     * Window with this flag can receive an input event stream containing events with varying
     * displayIds in the corresponding coordinate space when the cursor crosses display boundary.
     *
     * When this flag is not set, window will receive a modified event stream where display Id will
     * remain unchanged and coordinate space will extend beyond the logical display space.
     */
     DISPLAY_TOPOLOGY_AWARE       = 1 << 19,
}