polybar-dwm/include
Patrick Ziegler 8e04f15ed6
fix(backlight): %backlight% token appearing on the bar (#3081)
* Fix backlight initial value matching the actual brightness level

The initial value is `0`. If the actual brightness is also `0` you see
`%percentage%` token as text, it’s not being replaced. Since
`m_brightness` is an `int` the initial value could be just `-1` since
the actual brightness is never goes below zero. Thus this bug will never
show up again because actual brightness on first render won’t match
the “old” `m_brightness` value.

See also for more detailed explanation of the bug:
https://github.com/polybar/polybar/discussions/3079#discussioncomment-8169932

* Add docs

---------

Co-authored-by: Viacheslav Lotsmanov <lotsmanov89@gmail.com>
2024-01-20 18:09:12 +01:00
..
adapters alsa: include asoundlib.h instead of all alsa headers 2023-09-28 19:30:49 +02:00
cairo Cleanup 2023-05-10 17:06:00 +02:00
components Refactor config::dereference* (#2963) 2023-05-18 09:47:45 +02:00
drawtypes feat: longest match ws-icon fuzzy matching (#2831) 2022-10-05 23:05:44 +02:00
events Remove tray_visibility signal 2023-11-11 04:01:26 +01:00
ipc fix(ipc): Crash when sending to multiple instances 2022-10-23 14:19:26 +02:00
modules fix(backlight): %backlight% token appearing on the bar (#3081) 2024-01-20 18:09:12 +01:00
tags feat(tray): Position using a module (#2595) 2022-04-15 23:50:04 +02:00
utils fix(bspwm): Restack against topmost root window. 2023-10-08 21:04:29 +02:00
x11 Remove tray_visibility signal 2023-11-11 04:01:26 +01:00
CMakeLists.txt refactor(cmake): Allow targets to be enabled individually 2020-12-24 02:20:38 +01:00
common.hpp build: Add missing headers in common.hpp 2023-11-12 15:18:34 +01:00
debug.hpp refactor: Cleanup 2017-01-11 03:07:28 +01:00
errors.hpp Make the event loop return shared_ptrs (#2842) 2022-10-15 23:21:40 +02:00
settings.hpp.cmake feat(temperature): Add zone-type setting (#2752) 2022-08-21 19:25:42 +02:00