tony / oxwm

fixing underline width.. Browse files
tonybanters committed 2025-10-03 parent c847ca5 commit 7b4ea870ab45ec6968cdd1b3d8527af7b5de0e5c
Showing 1 changed file with 3 additions and 2 deletions. UnifiedSplit
+3 −2 src/bar/bar.rs
@@ -159,8 +159,9 @@ impl Bar {
159 let bottom_margin = 4; 159 let bottom_margin = 4;
160 let underline_y = self.height as i16 - underline_height as i16 - bottom_margin; 160 let underline_y = self.height as i16 - underline_height as i16 - bottom_margin;
161 161
162 - let underline_width = text_width + 6; 162 + let underline_padding = 4;
163 - let underline_x = text_x - 3; 163 + let underline_width = tag_width - underline_padding;
164 + let underline_x = x_position + (underline_padding / 2) as i16;
164 165
165 connection.change_gc( 166 connection.change_gc(
166 self.graphics_context, 167 self.graphics_context,