Closed CatEricka closed 7 months ago
Before this patch:
plasma-ddcci-backend set-brightness: error: argument brightness: invalid int value: '68.5'
After:
The high resolution mouse wheel support may be fixed upstream in the future, so just doing defensive programming would be good enough.
Just have been able to reproduce this, but also using a regular mouse wheel and only after switching to Plasma 6.
I think when rounding this we should take the step size into account by dividing by the step size, rounding and multiplying by the step size again.
I hope I will be able to merge this in the coming days.
I'm researching if there is a better solution...
On Debian 12 and KDE Plasma 5.27.5, the high resolution mouse wheel (for me, it's Logitech M720) may cause the value to be a non-integer number.
This may be a bug, but considering that the backend only supports integers, this should be works.