RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process
Guard transfer tree click boundaries
Mel5e95a41fde1e
diff --git a/src/files/app_sidebar_paint.zig b/src/files/app_sidebar_paint.zigindex 714f997..1ac8a04 100644--- a/src/files/app_sidebar_paint.zig+++ b/src/files/app_sidebar_paint.zig@@ -673,7 +673,8 @@ pub fn transferTreeBox(self: *App) shell_ui.Rect {pub fn transferTreeClick(self: *App, x: f64, y: f64) bool {const area = transferTreeBox(self);- if (area.h <= 0 or x < area.x or x >= area.x + area.w or y < area.y or y >= area.y + area.h) return false;+ if (area.h <= 0 or x < area.x or x >= area.x + area.w or+ y < area.y + 4 or y >= area.y + area.h) return false;const tree = if (self.transfer_tree_state.tree) |*value| value else return true;const row = @as(usize, @intFromFloat((y - area.y - 4) / 25));