Files
gio/app/internal/window
Elias Naur 9d1e3370f4 app/internal/window: fix Wayland clipboard reading
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>
2021-02-21 14:36:36 +01:00
..
2020-01-24 14:32:54 +01:00
2021-02-08 09:15:14 +01:00
2021-02-08 09:15:14 +01:00
2021-02-08 09:15:14 +01:00
2020-12-03 16:45:17 +01:00