st-clipboard-0.8.3.diff 272 B

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