diff --git a/x.c b/x.c index 0422421..e00d930 100644 --- a/x.c +++ b/x.c @@ -627,6 +627,8 @@ 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 @@ -644,7 +646,7 @@ brelease(XEvent *e) } if (e->xbutton.button == Button2) - selpaste(NULL); + clippaste(NULL); else if (e->xbutton.button == Button1) mousesel(e, 1); }