RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process
Adjust sidebar glow bounds
Mel8a07dccc70a6
diff --git a/src/files/app_hover.zig b/src/files/app_hover.zigindex b85725e..5d8da3f 100644--- a/src/files/app_hover.zig+++ b/src/files/app_hover.zig@@ -555,7 +555,7 @@ pub fn damageSidebarProximity(self: *App, old_x: f64, old_y: f64, new_x: f64, neconst rect: button_widget.Rect = .{.x = 12,.y = @floatFromInt(card.y + 2),- .w = @floatFromInt(@max(0, self.sidebarWidth() - self.scrollbarGutter() - 40)),+ .w = @floatFromInt(@max(0, self.sidebarWidth() - self.scrollbarGutter() - 24)),.h = 28,};const clip: button_widget.Rect = .{diff --git a/src/files/app_places.zig b/src/files/app_places.zigindex 0d09675..11d64a5 100644--- a/src/files/app_places.zig+++ b/src/files/app_places.zig@@ -202,7 +202,9 @@ pub fn deviceBlock(self: *App) i32 {/// The eject button at a mounted device row's right edge.pub fn ejectRect(self: *App, index: usize) header.Rect {const row = self.placeRect(index);- return .{ .x = row.x + row.w - 30, .y = row.y + (row.h - 26) / 2, .w = 26, .h = 26 };+ // Leave room for the proximity glow between the button and the+ // sidebar's right-side scrollbar gutter.+ return .{ .x = row.x + row.w - 38, .y = row.y + (row.h - 26) / 2, .w = 26, .h = 26 };}/// The device whose eject button is at (`x`, `y`).