Skip to content
Snippets Groups Projects
Commit 65c005a6 authored by chaviw's avatar chaviw Committed by Linus Tufvesson
Browse files

Set windowInfo.displayId to be the layerStack

Instead of using the displayId sent from WMS, it's better to use the
layerStack since it more accurately represents where the layer is
presented. Previously, the only case where WMS needed to set a displayId
different from layerStack was when using portal displays, which is no
longer supported.

This also fixes the case with cloned layers. If a cloned layer was
placed on a different display than the main layer, the WindowInfo for
the clone would end up having the same display as the main window since
the properties were directly copied over. With this fix, the cloned
layer's WindowInfo will get the correct layerStack that represents where
it's actually rendered.

Test: MediaProjection capture with mirror
Bug: 195280234
Bug: 194480991
Change-Id: Id1794798a543260c9868ccdc1be3cdb574b73dd5
Merged-In: Id1794798a543260c9868ccdc1be3cdb574b73dd5
(cherry picked from commit 6eada62e)
parent e86a7214
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment