Skip to content

layer-shell-effects: Handle initial alpha better by taking the value from the layer-surface

Guido Günther requested to merge guidog/phoc:initial-alpha into main

Use the surface's current alpha for the initial value. This ensures setting the same alpha value is a noop while all others apply.

Until now setting an initial value of 0.0 would have been silently ignored as pending == current == 0.0.

Prompted by phosh!1611 (merged) where we hide the overview background and bring it back at alpha 0.0 when apps are open.

/cc @arun-mani-j please have a look

Signed-off-by: Guido Günther agx@sigxcpu.org

Edited by Guido Günther

Merge request reports

Loading