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.
This commit is contained in:
Wim Taymans 2020-01-14 10:00:54 +01:00
parent 6c8fd3c29d
commit 3d8c8b4a85

View file

@ -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;