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

Commit b95944cc authored by Wenhui Yang's avatar Wenhui Yang Committed by Android (Google) Code Review
Browse files

Merge "Update visibleForInput to make gesture monitor visible in input list" into main

parents bb68e3d7 ff95c612
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -262,7 +262,10 @@ void updateVisibility(LayerSnapshot& snapshot, bool visible) {
    snapshot.isVisible = visible;

    if (FlagManager::getInstance().skip_invisible_windows_in_input()) {
        snapshot.inputInfo.setInputConfig(gui::WindowInfo::InputConfig::NOT_VISIBLE, !visible);
        const bool visibleForInput =
                snapshot.isVisible || (snapshot.hasInputInfo() && !snapshot.isHiddenByPolicy());
        snapshot.inputInfo.setInputConfig(gui::WindowInfo::InputConfig::NOT_VISIBLE,
                                          !visibleForInput);
    } else {
        // TODO(b/238781169) we are ignoring this compat for now, since we will have
        // to remove any optimization based on visibility.