From e110f912e213f12c73bee0fa31b018b48586e862 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 12 May 2017 12:09:18 -0400 Subject: [PATCH] don't dup fds during xwl bridged selection transfer, this happens in libwayland --- src/modules/xwayland/dnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/xwayland/dnd.c b/src/modules/xwayland/dnd.c index 47c5d9569..505440352 100644 --- a/src/modules/xwayland/dnd.c +++ b/src/modules/xwayland/dnd.c @@ -399,7 +399,7 @@ _xwl_selection_request(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_X_Event_Sel p->fdh = ecore_main_fd_handler_add(fds[0], ECORE_FD_READ, _xwl_pipe_read, p, NULL, NULL); p->win = ev->requestor; p->source = source; - wl_data_source_send_send(source->resource, type, dup(fds[1])); + wl_data_source_send_send(source->resource, type, fds[1]); close(fds[1]); p->atom = ev->target; p->selection = ev->selection;