diff options
author | 2020-12-24 22:42:48 +0100 | |
---|---|---|
committer | 2022-01-19 09:20:27 +0100 | |
commit | b4fd4bca0e95bd6abab32280d8bad40c97df0828 (patch) | |
tree | 09501ee323138291223d9e0f7063782c40ccd24d /swaybar/tray/item.c | |
parent | build: execute wlroots subproject before finding deps (diff) | |
download | sway-b4fd4bca0e95bd6abab32280d8bad40c97df0828.tar.gz sway-b4fd4bca0e95bd6abab32280d8bad40c97df0828.tar.zst sway-b4fd4bca0e95bd6abab32280d8bad40c97df0828.zip |
tray: do not render passive items
https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/StatusNotifierItem/#org.freedesktop.statusnotifieritem.status
Diffstat (limited to 'swaybar/tray/item.c')
-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, | |||
466 | sni->target_size = target_size; | 466 | sni->target_size = target_size; |
467 | } | 467 | } |
468 | 468 | ||
469 | // Passive | ||
470 | if (sni->status && sni->status[0] == 'P') { | ||
471 | return 0; | ||
472 | } | ||
473 | |||
469 | int icon_size; | 474 | int icon_size; |
470 | cairo_surface_t *icon; | 475 | cairo_surface_t *icon; |
471 | if (sni->icon) { | 476 | if (sni->icon) { |