fix off-by-1 error for center items (#640)

This commit is contained in:
Jean Dupouy 2024-11-08 15:03:18 +01:00 committed by GitHub
parent ed1684d348
commit cf45542410
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -241,7 +241,7 @@ static void bar_calculate_bounds_top_bottom(struct bar* bar) {
0 );
uint32_t bar_center_first_item_x = (bar->window.frame.size.width
- center_length) / 2 - 1;
- center_length) / 2;
uint32_t bar_center_right_first_item_x = (bar->window.frame.size.width
+ notch_width) / 2;