oxwm

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

updates

Commit
98c4ade54e5148d5ad3350e9cb3dce09b6df6952
Parent
95fc4c9
Author
tonybanters <tonybanters@gmail.com>
Date
2025-10-03 18:08:10

Diff

diff --git a/src/bar/bar.rs b/src/bar/bar.rs
index b81ad92..0d3a0d0 100644
--- a/src/bar/bar.rs
+++ b/src/bar/bar.rs
@@ -135,17 +135,17 @@ impl Bar {
                 &SCHEME_NORMAL
             };
 
-            let text_y = (self.height as i16 / 2) + (self.font.ascent() / 2);
+            let top_padding = 8;
+            let text_y = top_padding + self.font.ascent();
+
             self.font_draw
                 .draw_text(&self.font, scheme.foreground, x_position + 5, text_y, tag);
 
             if is_selected {
                 let underline_height = 3;
                 let gap_above_underline = 3;
-
                 let underline_y =
                     self.height as i16 - underline_height as i16 - gap_above_underline;
-
                 connection.change_gc(
                     self.graphics_context,
                     &ChangeGCAux::new().foreground(scheme.border),