diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-10 18:24:04 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-10 18:24:04 +0000 |
| commit | 5bac3cfa2cb6a1e7b6eb0012c134bd2e844fcf61 (patch) | |
| tree | f9715cab0e0059d85528575d91eca61d241eb797 | |
| parent | wayland; fixup (diff) | |
selection: use edge-triggered FDM handlers
| -rw-r--r-- | selection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/selection.c b/selection.c index 2c7bc0b2..1dfa7dc6 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, &fdm_send, ctx)) + if (fdm_add(wayl->fdm, fd, EPOLLOUT | EPOLLET, &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, &fdm_send, ctx)) + if (fdm_add(wayl->fdm, fd, EPOLLOUT | EPOLLET, &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, &fdm_receive, ctx)) { + if (!fdm_add(term->fdm, read_fd, EPOLLIN | EPOLLET, &fdm_receive, ctx)) { close(read_fd); free(ctx); done(user); |
