oxwm

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

updates

Commit
95fc4c9851db469f9b87c39a3c5745a29717d17e
Parent
9e2494e
Author
tonybanters <tonybanters@gmail.com>
Date
2025-10-03 18:01:07

Diff

diff --git a/src/bar/bar.rs b/src/bar/bar.rs
index 411ac26..b81ad92 100644
--- a/src/bar/bar.rs
+++ b/src/bar/bar.rs
@@ -140,10 +140,11 @@ impl Bar {
                 .draw_text(&self.font, scheme.foreground, x_position + 5, text_y, tag);
 
             if is_selected {
-                let underline_height = 2;
-                let spacing_from_text = 4;
+                let underline_height = 3;
+                let gap_above_underline = 3;
 
-                let underline_y = text_y + spacing_from_text;
+                let underline_y =
+                    self.height as i16 - underline_height as i16 - gap_above_underline;
 
                 connection.change_gc(
                     self.graphics_context,