x11: Explicitly track end of stream
authorBenjamin Otte <otte@redhat.com>
Mon, 13 Dec 2021 00:52:30 +0000 (01:52 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 13 Dec 2021 00:52:30 +0000 (01:52 +0100)
commit6fc5e04d7c868b9b4efdd957d03ae5d3bbd91b12
treedce5e3232843440a9294a1dae72ae91b263abf7d
parent66f1fef0830337de50731d0e44d5f1b133fe5208
x11: Explicitly track end of stream

The OutputStream needs to write a 0 byte end of stream Property. We need
to track if that has been written, and we do that with that new
property.

We also use that property to always request flushes when the stream is
being closed, so that we don't wait for another flush() call.
gdk/x11/gdkselectionoutputstream-x11.c