francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.
ISC License
911 stars 50 forks source link

Wob accepts invalid input. #4

Closed 7415963987456321 closed 5 years ago

7415963987456321 commented 5 years ago

While fiddling around with the code for a pull request I'm working on I noticed that some input outside the range of 0-100 is accepted by wob.

For example most values between 256 and 299 is accepted by wob. 300 is not accepted but 512 and some other numbers are accepted. 299 is displayed as roughly 45% for instance.

7415963987456321 commented 5 years ago

Actually I may have fixed it, I'll send a pull request in a moment.

7415963987456321 commented 5 years ago

Pull request here: #5

7415963987456321 commented 5 years ago

Closing, issue fixed in #6.