RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process
Fix sidebar button glow clipping
Melc066d228bca7
diff --git a/src/files/app_hover.zig b/src/files/app_hover.zigindex c8b9596..b85725e 100644--- a/src/files/app_hover.zig+++ b/src/files/app_hover.zig@@ -270,7 +270,7 @@ pub fn updateSidebarSurface(self: *App) void {.clip = .{.x = 8,.y = @floatFromInt(body_top),- .w = @floatFromInt(@max(0, self.sidebarWidth() - self.scrollbarGutter() - 16)),+ .w = @floatFromInt(@max(0, self.sidebarWidth() - self.scrollbarGutter() - 8)),.h = @floatFromInt(card.body_height),},.role = .interactive,@@ -532,7 +532,7 @@ pub fn damageSidebarProximity(self: *App, old_x: f64, old_y: f64, new_x: f64, neconst clip: button_widget.Rect = .{.x = 8,.y = @floatFromInt(card.y + card.header_height),- .w = @floatFromInt(@max(0, self.sidebarWidth() - self.scrollbarGutter() - 16)),+ .w = @floatFromInt(@max(0, self.sidebarWidth() - self.scrollbarGutter() - 8)),.h = @floatFromInt(card.body_height),};const before = button_widget.sampleProximity(rect, @floatCast(old_x), @floatCast(old_y), clip);diff --git a/src/files/app_sidebar_paint.zig b/src/files/app_sidebar_paint.zigindex 3d41d51..d54c1bf 100644--- a/src/files/app_sidebar_paint.zig+++ b/src/files/app_sidebar_paint.zig@@ -99,7 +99,7 @@ fn drawSidebarRowProximity(const clip: shell_ui.Rect = .{.x = 8,.y = @floatFromInt(source_top),- .w = @floatFromInt(@max(0, self.sidebarWidth() - self.scrollbarGutter() - 16)),+ .w = @floatFromInt(@max(0, self.sidebarWidth() - self.scrollbarGutter() - 8)),.h = @floatFromInt(card.body_height),};shell_ui.drawProximityGlow(