diff options
author | Tobias Bengfort <tobias.bengfort@posteo.de> | 2020-12-24 22:42:48 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-01-19 09:20:27 +0100 |
commit | b4fd4bca0e95bd6abab32280d8bad40c97df0828 (patch) | |
tree | 09501ee323138291223d9e0f7063782c40ccd24d /swaybar | |
parent | a1905c6a087fa428d86f42c81333f5ad2abee6c8 (diff) |
tray: do not render passive items
https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/StatusNotifierItem/#org.freedesktop.statusnotifieritem.status
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/tray/item.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/swaybar/tray/item.c b/swaybar/tray/item.c index 6d4b17bf..0cb5ee9d 100644 --- a/swaybar/tray/item.c +++ b/swaybar/tray/item.c @@ -466,6 +466,11 @@ uint32_t render_sni(cairo_t *cairo, struct swaybar_output *output, double *x, sni->target_size = target_size; } + // Passive + if (sni->status && sni->status[0] == 'P') { + return 0; + } + int icon_size; cairo_surface_t *icon; if (sni->icon) { |