mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
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:
parent
6c8fd3c29d
commit
3d8c8b4a85
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue