Fix portal capture on sway and hyprland: unset capture types/cursor modes that are not supported by the desktop portal

This commit is contained in:
dec05eba
2025-03-03 12:36:44 +01:00
parent 23122ce9b0
commit 6024a54551
3 changed files with 39 additions and 3 deletions

View File

@@ -366,7 +366,7 @@ static bool gsr_pipewire_audio_listen_on_metadata(gsr_pipewire_audio *self, uint
}
// TODO:
pw_proxy_add_object_listener(self->metadata_proxy, &self->metadata_listener, &metadata_events, self);
pw_metadata_add_listener((struct pw_metadata*)self->metadata_proxy, &self->metadata_listener, &metadata_events, self);
//struct spa_hook proxy_listener;
//pw_proxy_add_listener(self->metadata_proxy, &proxy_listener, &metadata_proxy_events, self);