mirror of
https://github.com/swaywm/sway.git
synced 2026-06-08 03:02:23 -04:00
Allow multiple object paths for each connection
This commit is contained in:
parent
bd121999ca
commit
4231061e4d
3 changed files with 27 additions and 2 deletions
|
|
@ -291,8 +291,11 @@ static DBusHandlerResult signal_handler(DBusConnection *connection,
|
|||
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
|
||||
}
|
||||
|
||||
// TODO allow one unique name to have multiple items
|
||||
if (list_seq_find(tray->items, sni_str_cmp, unique_name) == -1) {
|
||||
struct ObjName obj_name = {
|
||||
object_path,
|
||||
unique_name,
|
||||
};
|
||||
if (list_seq_find(tray->items, sni_obj_name_cmp, &obj_name) == -1) {
|
||||
struct StatusNotifierItem *item =
|
||||
sni_create_from_obj_path(unique_name,
|
||||
object_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue