geommer / yabar

A modern and lightweight status bar for X window managers.
MIT License
679 stars 49 forks source link

"align: center" doesn't center my block properly #156

Open rvdz opened 7 years ago

rvdz commented 7 years ago

If the slack size is not equals to zero, I can't center perfectly my blocks on the bar as the slack size will be added when the position of the block is computed.

rvdz commented 7 years ago

I found a clue to fix this. In the function ya_create_block, around line 113, I removed an extra blk->bar->slack added value and it seems to work fine.

NBonaparte commented 6 years ago

Feel free to make a pull request and we can work from there.

romzie commented 6 years ago

Issue still not fixed on Debian 9.3 with yabar v0.4.0-1 installed with apt install yabar