gdkselectioninputstream-x11: Explicitly handle stream ownership in signal
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 30 May 2023 15:59:06 +0000 (17:59 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 30 May 2023 15:59:19 +0000 (17:59 +0200)
commitbe4f6ff3dad7adce085a95ca652dda31a20a00d4
tree889b930ba9611bec1fb1912a7ee08cb6cce0eb11
parent4fcf899852373caadd898b7f7e8039c12815aca2
gdkselectioninputstream-x11: Explicitly handle stream ownership in signal

The display xevent signal connection takes the ownership of the stream
until we get a valid event, so it should manage the stream lifetime.

So make this clearer, by automatically removing the stream reference
when we disconnect from the xevent signal handler.
gdk/x11/gdkselectioninputstream-x11.c