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

Commit 89341c12 authored by Marzia Favaro's avatar Marzia Favaro
Browse files

Do not create dim layer until it gets a valid dimming request

If a window requests a dim of 0 and no blur, the dim surface gets created (because
technically someone is requesting to dim) and then immediately
destroyed (because alpha=0, blur=0 means that this layer should be destroyed as
it's useless). We can postpone creating a new surface until the window
requests a non 0 value.

Bug: 401449608
Test: DimmerTests
Flag: EXEMPT minor change
Change-Id: I11c97ae6401e3151df4941a5ec6ad42bb94357ce
parent b4a1b07e
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