From 3957d50a8a19f2b0cdd844101092b4ffbc9f61b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 10 Jan 2020 19:49:48 +0100 Subject: [PATCH] Revert "selection: use edge-triggered FDM handlers" This reverts commit 5bac3cfa2cb6a1e7b6eb0012c134bd2e844fcf61. --- selection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selection.c b/selection.c index 1dfa7dc6..2c7bc0b2 100644 --- a/selection.c +++ b/selection.c @@ -568,7 +568,7 @@ send(void *data, struct wl_data_source *wl_data_source, const char *mime_type, .idx = async_idx, }; - if (fdm_add(wayl->fdm, fd, EPOLLOUT | EPOLLET, &fdm_send, ctx)) + if (fdm_add(wayl->fdm, fd, EPOLLOUT, &fdm_send, ctx)) return; free(ctx->data); @@ -660,7 +660,7 @@ primary_send(void *data, .idx = async_idx, }; - if (fdm_add(wayl->fdm, fd, EPOLLOUT | EPOLLET, &fdm_send, ctx)) + if (fdm_add(wayl->fdm, fd, EPOLLOUT, &fdm_send, ctx)) return; free(ctx->data); @@ -828,7 +828,7 @@ begin_receive_clipboard(struct terminal *term, int read_fd, .user = user, }; - if (!fdm_add(term->fdm, read_fd, EPOLLIN | EPOLLET, &fdm_receive, ctx)) { + if (!fdm_add(term->fdm, read_fd, EPOLLIN, &fdm_receive, ctx)) { close(read_fd); free(ctx); done(user);