Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
render: damage output on view opacity change
river/View.zig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/river/View.zig b/river/View.zig
index cc44133..b059e26 100644
--- a/river/View.zig
+++ b/river/View.zig
@@ -536,7 +536,6 @@ pub fn notifyAppId(self: Self) void {
/// Change the opacity of a view by config.opacity.delta.
/// If the target opacity was reached, return true.
fn incrementOpacity(self: *Self) bool {
- // TODO damage view when implementing damage based rendering
if (self.opacity < self.current.target_opacity) {
self.opacity += server.config.opacity.delta;
if (self.opacity < self.current.target_opacity) return false;
@@ -545,6 +544,7 @@ fn incrementOpacity(self: *Self) bool {
if (self.opacity > self.current.target_opacity) return false;
}
self.opacity = self.current.target_opacity;
+ self.output.damage.addWhole();
return true;
}