emersion / xdg-desktop-portal-wlr

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

screencast: unmess the pipewire/wlr split #184

Closed columbarius closed 2 years ago

columbarius commented 2 years ago

Using the on_process event of the PipeWire can create a race condition when a previous started screencast hasn't finished before the next event.

This MR is composed of following parts:

Resolves: #182

columbarius commented 2 years ago

This solves the current race condition quite nicely. Additionally this design won't hinder the adoption of dmabufs or ext-screencopy.