aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-10 01:00:14 +0200
committerMateja <mail@matejamaric.com>2021-04-10 01:00:14 +0200
commit5d22f95fecef1bbade79350a8585ce1b81fb9898 (patch)
treec246b0a44bcbf6a24f6c73a9832f203efd3e7305
parent086870bda90b248d800bbce93a5ea7b63b6d1fc4 (diff)
downloadst-5d22f95fecef1bbade79350a8585ce1b81fb9898.tar.gz
st-5d22f95fecef1bbade79350a8585ce1b81fb9898.zip
Applied `clipboard` patch.v1.3.2
-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