aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--x.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 139c8ac..83c15be 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,7 @@ This is my fork of [st][stterm] terminal with following patches applied:
- newterm
- desktopentry
- scrollback (with mouse)
+- clipboard
## Dependencies:
diff --git a/x.c b/x.c
index fae2e5a..c2fd352 100644
--- a/x.c
+++ b/x.c
@@ -677,6 +677,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