polybar/src/x11
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
..
extensions fix(randr): avoid querying hardware to get current configuration (#2470) 2023-05-18 11:29:30 +02:00
atoms.cpp feat(xwindow): %instance%, %class% from WM_CLASS 2022-10-02 20:57:29 +02:00
background_manager.cpp Merge remote-tracking branch 'upstream/master' into tray-child-window 2022-09-11 19:32:29 +02:00
connection.cpp Remove screen realloc argument 2022-11-30 13:41:25 +01:00
cursor.cpp Merge branch 'hotfix/3.6.2' 2022-04-03 20:11:19 +02:00
ewmh.cpp restack: Add ewmh restacking strategy 2023-05-15 14:44:50 +02:00
icccm.cpp feat(xwindow): %instance%, %class% from WM_CLASS 2022-10-02 20:57:29 +02:00
legacy_tray_manager.cpp tray: Deprecate all legacy tray settings 2023-08-06 15:26:28 +02:00
registry.cpp refactor(connection: Use custom base 2016-12-26 09:46:48 +01:00
tray_client.cpp tray: Address rendering related TODOs 2023-03-25 19:19:09 +01:00
tray_manager.cpp fix(tray): Allow module to disappear for empty tray 2023-11-11 04:01:26 +01:00
window.cpp Merge remote-tracking branch 'upstream/master' into tray-child-window 2022-07-25 23:40:45 +02:00
winspec.cpp Use connection.root() to get root window 2022-04-16 00:16:50 +02:00
xembed.cpp renderer: documentation 2023-03-23 23:12:50 +01:00
xresources.cpp ci: Update codecov and checkout actions 2023-02-13 22:00:43 +01:00