Skip to content

wayland: Make FDs received on data_offer.receive non-blocking

Carlos Garnacho requested to merge carlosg/mutter:wip/write-fd-nonblocking into main

This avoids possible freezes when splicing selection/DnD data into it. Even though GLib tries to poll for it being writable before actually writing, the FD may be initially open for writes but get full within the same write, leading to the main thread being blocked.

Set the FD non-blocking, so that these writes are failable themselves.

Closes: #3497

Merge request reports