Revert "selection: use edge-triggered FDM handlers"

This reverts commit 5bac3cfa2c.
This commit is contained in:
Daniel Eklöf 2020-01-10 19:49:48 +01:00
parent ed8d7f4bae
commit 3957d50a8a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);