From acaf19246595f4b300207d146f727c204ac63dae Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 31 May 2021 15:21:42 +0000 Subject: [PATCH] render: actually 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 b059e26..2287e28 100644 --- a/river/View.zig +++ b/river/View.zig @@ -536,6 +536,7 @@ 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 { + self.output.damage.addWhole(); if (self.opacity < self.current.target_opacity) { self.opacity += server.config.opacity.delta; 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; } self.opacity = self.current.target_opacity; - self.output.damage.addWhole(); return true; }