mirror of
https://github.com/FelixKratz/SketchyBar
synced 2025-02-16 12:38:26 +00:00
fix off-by-1 error for center items (#640)
This commit is contained in:
parent
ed1684d348
commit
cf45542410
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue