1
0
mirror of https://github.com/alrayyes/st synced 2023-11-14 15:56:30 +00:00
st/st-clipboard-0.8.3.diff
2020-11-28 12:17:22 +01:00

13 lines
272 B
Diff

diff --git a/x.c b/x.c
index e5f1737..5cabd60 100644
--- a/x.c
+++ b/x.c
@@ -673,6 +673,7 @@ setsel(char *str, Time t)
XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
selclear();
+ clipcopy(NULL);
}
void