Skip to content

Commit

Permalink
fix off-by-1 error for center items (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
izeau authored Nov 8, 2024
1 parent ed1684d commit cf45542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf45542

Please sign in to comment.