diff options
| author | 2023-04-05 10:55:26 +0000 | |
|---|---|---|
| committer | 2023-04-05 10:55:26 +0000 | |
| commit | 34cf3256da02f62431adfa8228c0eb971e940034 (patch) | |
| tree | f664a13a5659c157e363763709693661f0bca262 /services/surfaceflinger/Layer.cpp | |
| parent | d294901e63fd57e884531a5dd7aea010770ec6f7 (diff) | |
| parent | 243e2e9af82700c76f743ee71e0f27fe1a3f4383 (diff) | |
Merge "DO NOT MERGE: Force input window updates when layer visibility changes" into tm-qpr-dev
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index aff94d132e..4593b40b7d 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -2391,16 +2391,7 @@ WindowInfo Layer::fillInputInfo(const InputDisplayArgs& displayArgs) { info.inputConfig |= WindowInfo::InputConfig::NOT_TOUCHABLE; } - // For compatibility reasons we let layers which can receive input - // receive input before they have actually submitted a buffer. Because - // of this we use canReceiveInput instead of isVisible to check the - // policy-visibility, ignoring the buffer state. However for layers with - // hasInputInfo()==false we can use the real visibility state. - // We are just using these layers for occlusion detection in - // InputDispatcher, and obviously if they aren't visible they can't occlude - // anything. - const bool visible = hasInputInfo() ? canReceiveInput() : isVisible(); - info.setInputConfig(WindowInfo::InputConfig::NOT_VISIBLE, !visible); + info.setInputConfig(WindowInfo::InputConfig::NOT_VISIBLE, !isVisibleForInput()); info.alpha = getAlpha(); fillTouchOcclusionMode(info); |