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

Commit 11a52b76 authored by Kan-Ru Chen's avatar Kan-Ru Chen Committed by Steve Kondik
Browse files

frameworks: WindowManagerService: Fix out of memory for surface error

Surface.openTransaction and Surface.closeTransaction is not reentrant.
If we are updating the mouse surface when the WindowManager is also
updating the surfaces, the global transaction can be closed too early
by the other side. The results are random runtime exceptions and
unstable surface state.

Move the mouse surface update logic to the big surfaces update
loop, together with the other surfaces update logic.

Change-Id: I38a4f264f8de59899c3ac0fdaf9d8cd520d41947
parent 9c3709a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment