diff options
| author | Michael Forney <mforney@mforney.org> | 2022-11-27 14:05:58 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2022-11-27 14:11:26 -0800 |
| commit | a312a9a069ab90e3bf9240479ecfd6cdafdacb31 (patch) | |
| tree | 011f6e88b0e4205c17ffdd57eff974e3f343c82e /pkg/st/patch | |
| parent | 95d18351c511ed609669c3caeca80d0535f69faa (diff) | |
st: Flush wl_data_offer.receive after closing write end of pipe
Otherwise, we still might have it open when the peer is processing
the event.
Diffstat (limited to 'pkg/st/patch')
| -rw-r--r-- | pkg/st/patch/0001-Port-to-wayland-using-wld.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/st/patch/0001-Port-to-wayland-using-wld.patch b/pkg/st/patch/0001-Port-to-wayland-using-wld.patch index 0ec0882b..ccf5732b 100644 --- a/pkg/st/patch/0001-Port-to-wayland-using-wld.patch +++ b/pkg/st/patch/0001-Port-to-wayland-using-wld.patch @@ -1,4 +1,4 @@ -From 61e878284860d2d83caff67254328cda2552c8a5 Mon Sep 17 00:00:00 2001 +From 86283aea345fd72e4889eee233daefc41615d979 Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Sun, 30 Oct 2016 23:54:56 -0700 Subject: [PATCH] Port to wayland using wld @@ -645,7 +645,7 @@ index c84c5ee..7da06f1 100644 # flags CPPFLAGS = -DVERSION=\"${VERSION}\" -D_XOPEN_SOURCE=600 diff --git a/st.c b/st.c -index fbcd9e0..913c71b 100644 +index fbcd9e0..9ead681 100644 --- a/st.c +++ b/st.c @@ -3,6 +3,8 @@ @@ -1510,8 +1510,8 @@ index fbcd9e0..913c71b 100644 + } else { + pipe(fds); + wl_data_offer_receive(wl.seloffer, "text/plain", fds[1]); -+ wl_display_flush(wl.dpy); + close(fds[1]); ++ wl_display_flush(wl.dpy); + while ((len = read(fds[0], buf, sizeof buf)) > 0) { + selwritebuf(buf, len); + } |
