mirror of
https://github.com/alrayyes/st
synced 2023-11-14 15:56:30 +00:00
23 lines
458 B
Diff
23 lines
458 B
Diff
|
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);
|
||
|
}
|