Skip to content
Commit b32b6acf authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Call surfaceplacement if the window goes for relayout

We do not perform surface placement on the window if its considered
gone for relayout. This change was introduced to prevent us from
using invalid mFrames. However there is a discrepancy in the gone
for relayout check. We will still relayout a window if the window is
not currently visible but a layout is request of reasons such as
window size changed. Fix this by requesting a surface placement
if relayout is requested.

This fixes an issue where a toast window created under the lock screen,
shows up with the wrong position for a few frames.

Test: go/wm-smoke
Test: open toast under lock screen, check toast appears in the correct position
Fixes: 175668342

Change-Id: Ibfe6aeb5704a348014e2ebca996874ebae18fdd2
parent 9ad3b820
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment