dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

19 lines912 bytesDiff
1diff --color -ruN a/src/modules/sni/item.cpp b/src/modules/sni/item.cpp
2--- a/src/modules/sni/item.cpp 2026-10-04 00:53:37.877421892 +0200
3+++ b/src/modules/sni/item.cpp 2026-10-04 00:53:37.889102823 +0200
4@@ -271,6 +271,15 @@
5 }
6 }
7
8+ // An icon update from the app replaces icon_name/icon_pixmap, and with them any
9+ // icon set through the "icons" config, so apply that override again. Electron apps
10+ // are matched by tooltip, which they may only set after registering, so a tooltip
11+ // update has to apply it too.
12+ if (update_pending_.count("IconName") || update_pending_.count("IconPixmap") ||
13+ update_pending_.count("ToolTip")) {
14+ setCustomIcon(id == "chrome_status_icon_1" ? tooltip.text.lowercase() : Glib::ustring(id));
15+ }
16+
17 this->updateImage();
18 } catch (const Glib::Error& err) {
19 spdlog::warn("Failed to update properties: {}", err.what());