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

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

Merge "SF: Configure input windows with the first input-enabled display"

parents ba57e13c 977e7c36
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -3281,15 +3281,15 @@ void SurfaceFlinger::buildWindowInfos(std::vector<WindowInfo>& outWindowInfos,
            continue;
        }

        // There is more than one display for the layerStack. In this case, the display that is
        // configured to receive input takes precedence.
        // There is more than one display for the layerStack. In this case, the first display that
        // is configured to receive input takes precedence.
        auto& details = it->second;
        if (!display->receivesInput()) {
            continue;
        }
        ALOGE_IF(details.receivesInput,
        if (details.receivesInput) {
            ALOGW_IF(display->receivesInput(),
                     "Multiple displays claim to accept input for the same layer stack: %u",
                     layerStackId);
            continue;
        }
        details.receivesInput = display->receivesInput();
        details.isSecure = display->isSecure();
        details.transform = std::move(transform);