diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-04-22 00:49:38 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-04-25 19:13:22 +0200 |
commit | b2d6712b15f46f536054b31d1c8ccce739004faa (patch) | |
tree | b39894ca0fd44bfc0e6eff8e7fa138bc6334e9f7 | |
parent | 961f45f44c11a7cada11f44bbce1ea8a9eaf5982 (diff) | |
download | libnotify-b2d6712b15f46f536054b31d1c8ccce739004faa.tar.gz |
notification: Avoid creating a new hint variant when nothing has changed
-rw-r--r-- | libnotify/notification.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnotify/notification.c b/libnotify/notification.c index a451d84..c2d2c72 100644 --- a/libnotify/notification.c +++ b/libnotify/notification.c @@ -1021,7 +1021,7 @@ get_parsed_variant (NotifyNotification *notification, const char *str = g_variant_get_string (variant, NULL); gchar *parsed = str_parser (notification, str); - if (parsed != NULL) { + if (parsed != NULL && g_strcmp0 (str, parsed) != 0) { g_variant_unref (variant); variant = g_variant_new_take_string (parsed); } |