From 3d8c8b4a850f6af6a09d19741a81ceae24441129 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 14 Jan 2020 10:00:54 +0100 Subject: [PATCH] client: don't update client permissions with defaults Make the default permissions only apply to other objects than the client. Otherwise when hiding all objects, we would also hide the client and be disconnected. --- src/pipewire/impl-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pipewire/impl-client.c b/src/pipewire/impl-client.c index 4e6a2dec8..ac3d6fe59 100644 --- a/src/pipewire/impl-client.c +++ b/src/pipewire/impl-client.c @@ -593,6 +593,8 @@ int pw_impl_client_update_permissions(struct pw_impl_client *client, def->permissions = new_perm; spa_list_for_each(global, &context->global_list, link) { + if (global->id == client->info.id) + continue; p = find_permission(client, global->id); if (p->id != SPA_ID_INVALID) continue;