From 212ade3e61e118c8eefbae40fd77c20683141b90 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 6 Nov 2020 16:47:55 +0100 Subject: Added clipboard patch --- README | 1 + README.org | 1 + x.c | 1 + 3 files changed, 3 insertions(+) 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 -- cgit v1.2.3