1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00
polybar/include/modules/meta
patrick96 8566051336 fix(tray): Allow module to disappear for empty tray
Modules that don't produce any output are hidden by the controller
(don't have margins or separators).
The tray module should also do that for `format = <tray>` when there are
no icons.

This required the visibility handling to be tied to the module
visibility instead of being handled by the renderer.
Otherwise, the renderer would hide the tray (because the %{Pt} tag was
never sent) and the tray would not unhide when new icons appeared; it
can't differentiate between hidden because empty and hidden because the
module is hidden by the user (the latter is the reason the renderer does
hiding at all).

Fixes #3036
2023-11-11 04:01:26 +01:00
..
all.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
base.hpp fix(tray): Allow module to disappear for empty tray 2023-11-11 04:01:26 +01:00
base.inl Remove config singleton (#2951) 2023-05-01 14:58:52 +02:00
event_handler.hpp refactor(event_handler): Abstract sink attaching 2016-12-23 05:08:19 +01:00
event_module.hpp Enable module in start funcion (#2538) 2021-10-15 10:33:10 +02:00
factory.hpp Remove config singleton (#2951) 2023-05-01 14:58:52 +02:00
inotify_module.hpp Merge remote-tracking branch 'upstream/master' into tray-child-window 2022-10-16 21:31:07 +02:00
static_module.hpp Enable module in start funcion (#2538) 2021-10-15 10:33:10 +02:00
timer_module.hpp Replace system_clock with steady_clock (#2559) 2022-01-12 23:06:29 +01:00
types.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00