added clipboard functionality

This commit is contained in:
Noah Swerhun 2020-07-15 15:57:27 -05:00
parent 7cb1597080
commit b4c5f7355f
4 changed files with 13 additions and 0 deletions

BIN
st

Binary file not shown.

12
st-clipboard-0.8.3.diff Normal file
View file

@ -0,0 +1,12 @@
diff --git a/x.c b/x.c
index e5f1737..5cabd60 100644
--- a/x.c
+++ b/x.c
@@ -673,6 +673,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

1
x.c
View file

@ -675,6 +675,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

BIN
x.o

Binary file not shown.