aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-06 16:47:55 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-06 16:47:55 +0100
commit212ade3e61e118c8eefbae40fd77c20683141b90 (patch)
tree719a01e58f18578748daba67cb487d8267bc1d1d
parentIncomplete patch fix for hidecursor (diff)
downloadst-212ade3e61e118c8eefbae40fd77c20683141b90.tar.gz
st-212ade3e61e118c8eefbae40fd77c20683141b90.tar.bz2
st-212ade3e61e118c8eefbae40fd77c20683141b90.tar.xz
st-212ade3e61e118c8eefbae40fd77c20683141b90.tar.zst
st-212ade3e61e118c8eefbae40fd77c20683141b90.zip
Added clipboard patch
-rw-r--r--README1
-rw-r--r--README.org1
-rw-r--r--x.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/README b/README
index 4892ab4..387dcc2 100644
--- a/README
+++ b/README
@@ -36,6 +36,7 @@ Here is my list:
- hidecursor
- keyboard select
- scrollback
+ - clipboard
Settings
--------
diff --git a/README.org b/README.org
index d2319c2..b71b4e7 100644
--- a/README.org
+++ b/README.org
@@ -33,6 +33,7 @@ Here is my list:
- /hidecursor/
- /keyboard select/
- /scrollback/
+- /clipboard/
* Settings
Most settings are done by editing ~config.h~ and recompiling.
diff --git a/x.c b/x.c
index 81efafe..2272461 100644
--- a/x.c
+++ b/x.c
@@ -562,6 +562,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