mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection: use edge-triggered FDM handlers
This commit is contained in:
parent
4e335422b8
commit
5bac3cfa2c
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue