git.lucas.co / cce-status-interface
status bar
git clone https://git.lucas.co/cce-status-interface.git

commitf791077d665465ef051b4a63701f75143bac9fb1
parent72d28c216c
authorLucas Galante <[email protected]>
date2026-06-24 12:26
Draw tray icons in overlay_rects to render on top of the rounded background container

 src/modules.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules.rs b/src/modules.rs
index aa5403f..89e1f49 100644
--- a/src/modules.rs
+++ b/src/modules.rs
@@ -700,8 +700,8 @@ impl StatusModule for TrayModule {
         bar_h: f32,
         scale_factor: f64,
         text_items: &mut Vec<TextItem>,
-        rects: &mut Vec<RectWidget>,
-        _overlay_rects: &mut Vec<RectWidget>,
+        _rects: &mut Vec<RectWidget>,
+        overlay_rects: &mut Vec<RectWidget>,
         _tag_bounds: &mut Vec<TagBounds>,
         _layout_bounds: &mut Option<LayoutBounds>,
         tray_items: &HashMap<String, TrayItem>,
@@ -791,7 +791,7 @@ impl StatusModule for TrayModule {
                                                 b = new_l;
                                             }
                                             
-                                            rects.push(RectWidget {
+                                            overlay_rects.push(RectWidget {
                                                 x: icon_x + col as f32 * pixel_w,
                                                 y: icon_y + row as f32 * pixel_h,
                                                 w: pixel_w,