Pass the first notification type as category to the dbus server

This commit is contained in:
Kovid Goyal
2024-08-02 20:41:18 +05:30
parent 62bd6c88e9
commit 89aa82e8d7
6 changed files with 9 additions and 7 deletions

1
glfw/linux_notify.c vendored
View File

@@ -177,6 +177,7 @@ glfw_dbus_send_user_notification(const GLFWDBUSNotificationData *n, GLFWDBusnoti
check_call(dbus_message_iter_close_container, &array, &dict); \
}
append_sv_dictionary_entry("urgency", DBUS_TYPE_BYTE, n->urgency);
if (n->category && n->category[0]) append_sv_dictionary_entry("category", DBUS_TYPE_STRING, n->category);
check_call(dbus_message_iter_close_container, &args, &array);
APPEND(args, DBUS_TYPE_INT32, n->timeout)