diff options
author | gnidorah <gnidorah@users.noreply.github.com> | 2017-11-16 06:56:56 +0300 |
---|---|---|
committer | Calvin Lee <cyrus296@gmail.com> | 2017-12-29 12:11:51 -0700 |
commit | cbd0c49a8cf5a11d1bcc27629a7a71f7fb9d9df2 (patch) | |
tree | 56b07ff95736619a0cb0901a4f36f6e6d4b5633a | |
parent | Fix `get_icon` (diff) | |
download | sway-cbd0c49a8cf5a11d1bcc27629a7a71f7fb9d9df2.tar.gz sway-cbd0c49a8cf5a11d1bcc27629a7a71f7fb9d9df2.tar.zst sway-cbd0c49a8cf5a11d1bcc27629a7a71f7fb9d9df2.zip |
Allow correct item to get icon updates for both kde and gtk implementation
-rw-r--r-- | swaybar/tray/sni.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/tray/sni.c b/swaybar/tray/sni.c index 98934e11..be7d9fd7 100644 --- a/swaybar/tray/sni.c +++ b/swaybar/tray/sni.c | |||
@@ -346,7 +346,7 @@ int sni_obj_name_cmp(const void *_item, const void *_obj_name) { | |||
346 | const struct StatusNotifierItem *item = _item; | 346 | const struct StatusNotifierItem *item = _item; |
347 | const struct ObjName *obj_name = _obj_name; | 347 | const struct ObjName *obj_name = _obj_name; |
348 | 348 | ||
349 | if (strcmp(item->name, obj_name->name) == 0 && | 349 | if (strcmp(item->unique_name, obj_name->name) == 0 && |
350 | strcmp(item->object_path, obj_name->obj_path) == 0) { | 350 | strcmp(item->object_path, obj_name->obj_path) == 0) { |
351 | return 0; | 351 | return 0; |
352 | } | 352 | } |