st-clipboard-0.7.diff (282B)
1 diff --git a/st.c b/st.c 2 index 2594c65..ebdde9f 100644 3 --- a/st.c 4 +++ b/st.c 5 @@ -1263,6 +1263,8 @@ xsetsel(char *str, Time t) 6 XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t); 7 if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win) 8 selclear(0); 9 + 10 + clipcopy(NULL); 11 } 12 13 void