render: actually damage output on view opacity change
This commit is contained in:
parent
9ee788b65e
commit
acaf192465
1 changed files with 1 additions and 1 deletions
|
@ -536,6 +536,7 @@ pub fn notifyAppId(self: Self) void {
|
||||||
/// Change the opacity of a view by config.opacity.delta.
|
/// Change the opacity of a view by config.opacity.delta.
|
||||||
/// If the target opacity was reached, return true.
|
/// If the target opacity was reached, return true.
|
||||||
fn incrementOpacity(self: *Self) bool {
|
fn incrementOpacity(self: *Self) bool {
|
||||||
|
self.output.damage.addWhole();
|
||||||
if (self.opacity < self.current.target_opacity) {
|
if (self.opacity < self.current.target_opacity) {
|
||||||
self.opacity += server.config.opacity.delta;
|
self.opacity += server.config.opacity.delta;
|
||||||
if (self.opacity < self.current.target_opacity) return false;
|
if (self.opacity < self.current.target_opacity) return false;
|
||||||
|
@ -544,7 +545,6 @@ fn incrementOpacity(self: *Self) bool {
|
||||||
if (self.opacity > self.current.target_opacity) return false;
|
if (self.opacity > self.current.target_opacity) return false;
|
||||||
}
|
}
|
||||||
self.opacity = self.current.target_opacity;
|
self.opacity = self.current.target_opacity;
|
||||||
self.output.damage.addWhole();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue