commit: a312a9a069ab90e3bf9240479ecfd6cdafdacb31
parent 95d18351c511ed609669c3caeca80d0535f69faa
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 27 Nov 2022 14:05:58 -0800
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:
2 files changed, 4 insertions(+), 4 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
@@ -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);
+ }
diff --git a/pkg/st/ver b/pkg/st/ver
@@ -1 +1 @@
-c63a87cd93 r6
+c63a87cd93 r7