[gtk+] wayland: Unset the source-side DnD fd after passing it to the stream
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Unset the source-side DnD fd after passing it to the stream
- Date: Wed, 9 Mar 2016 17:41:05 +0000 (UTC)
commit ec2257e53c618c2e33b1e77aa62b6dd24a107c21
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Mar 9 17:25:33 2016 +0100
wayland: Unset the source-side DnD fd after passing it to the stream
The ownership is given to the stream, so unset it here.
gdk/wayland/gdkselection-wayland.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index 30f3546..1826bb2 100644
--- a/gdk/wayland/gdkselection-wayland.c
+++ b/gdk/wayland/gdkselection-wayland.c
@@ -597,6 +597,8 @@ async_write_data_new (GdkWaylandSelection *selection)
write_data->stream =
g_unix_output_stream_new (selection->stored_selection.fd, TRUE);
+ selection->stored_selection.fd = -1;
+
return write_data;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]