nvnflinger: ensure display abandonment considers all layers and future layers

This commit is contained in:
Liam 2024-01-17 18:45:39 -05:00
parent 915efa4236
commit ce89580749
3 changed files with 15 additions and 3 deletions

View file

@ -112,9 +112,7 @@ void Nvnflinger::ShutdownLayers() {
{
const auto lock_guard = Lock();
for (auto& display : displays) {
for (size_t layer = 0; layer < display.GetNumLayers(); ++layer) {
display.GetLayer(layer).GetConsumer().Abandon();
}
display.Abandon();
}
is_abandoned = true;