mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
9d1e3370f4
The Wayland protocol implicitly dup(2)s the pipe write end descriptor passed to wl_data_offer_receive. As long as we also have an open descriptor for the write end, the pipe will not close and signal the completion of the clipboard read. This change explicitly and immediately closes our write descriptor. Before this change, reading the Wayland clipboard worked with some delay because the Go garbage collector closed the write end of the transfer pipe after some time. Signed-off-by: Elias Naur <mail@eliasnaur.com>