emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
591 stars 56 forks source link

screencast: destroy session if output is removed #176

Closed columbarius closed 2 years ago

columbarius commented 2 years ago

Objections to merging this?

columbarius commented 2 years ago

Added logging when output is removed. This helps debugging, since it adds a reason why the instance/session was closed.

columbarius commented 2 years ago

@emersion When an output is removed, we have to wait for all screencopy_frames created for that output to be destroyed. Do you have a better idea than to refcount if an output is used and "destroy" it as soon as the last instance using it is destroyed