oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git

updates

Commit
9e2494e5b709472429a827331578e9679847ea1e
Parent
6d4ea3d
Author
tonybanters <tonybanters@gmail.com>
Date
2025-10-03 17:57:31

Diff

diff --git a/src/bar/bar.rs b/src/bar/bar.rs
index 24ec0c5..411ac26 100644
--- a/src/bar/bar.rs
+++ b/src/bar/bar.rs
@@ -141,7 +141,10 @@ impl Bar {
 
             if is_selected {
                 let underline_height = 2;
-                let spacing_from_text = 3;
+                let spacing_from_text = 4;
+
+                let underline_y = text_y + spacing_from_text;
+
                 connection.change_gc(
                     self.graphics_context,
                     &ChangeGCAux::new().foreground(scheme.border),
@@ -151,7 +154,7 @@ impl Bar {
                     self.graphics_context,
                     &[Rectangle {
                         x: x_position,
-                        y: (self.height - underline_height - spacing_from_text) as i16,
+                        y: underline_y,
                         width: tag_width,
                         height: underline_height,
                     }],