From b4fd4bca0e95bd6abab32280d8bad40c97df0828 Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Thu, 24 Dec 2020 22:42:48 +0100 Subject: [PATCH] tray: do not render passive items https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/StatusNotifierItem/#org.freedesktop.statusnotifieritem.status --- swaybar/tray/item.c | 5 +++++ 1 file changed, 5 insertions(+) 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) {