ddb_musical_spectrum icon indicating copy to clipboard operation
ddb_musical_spectrum copied to clipboard

Auto sizing bar width leaves massive gaps

Open Samueru-sama opened this issue 1 year ago • 0 comments

I'm using deadbeef on i3wm, which means the app usually only has two window sizes, which are full screen which has no issue, the bar width is correct and there is no gap: https://imgur.com/a/qDnzRcq

Or I have deadbeef on an split screen, which is where the issue happens, there's a big gap at either end: https://imgur.com/5IQTD5u.png

Changing the default size from auto to a fixed number shows exactly what the issue is, the plugin decides that the best auto width is a value of 4 when it should instead be 5. Very likely this happens because 5 is slightly bigger than the space available so it defaults to the next smaller value which has the massive gaps.

There are two ways this could be fixed, either auto uses the next higher value instead of the next lower or use fractional values for bar width.

Samueru-sama avatar Jul 21 '23 07:07 Samueru-sama