mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
tray: do not render passive items
https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/StatusNotifierItem/#org.freedesktop.statusnotifieritem.status
This commit is contained in:
parent
a1905c6a08
commit
b4fd4bca0e
1 changed files with 5 additions and 0 deletions
|
@ -466,6 +466,11 @@ uint32_t render_sni(cairo_t *cairo, struct swaybar_output *output, double *x,
|
||||||
sni->target_size = target_size;
|
sni->target_size = target_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Passive
|
||||||
|
if (sni->status && sni->status[0] == 'P') {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int icon_size;
|
int icon_size;
|
||||||
cairo_surface_t *icon;
|
cairo_surface_t *icon;
|
||||||
if (sni->icon) {
|
if (sni->icon) {
|
||||||
|
|
Loading…
Reference in a new issue