dot
vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
| 1 | diff --color -ruN a/src/modules/sni/item.cpp b/src/modules/sni/item.cpp |
| 2 | |
| 3 | |
| 4 | |
| 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()); |