diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-22 23:25:58 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-22 23:25:58 +0530 |
commit | ad509637c4180d2b45db581ea81f21b405829f5a (patch) | |
tree | 762538108123c6cdc953dc541d99b97440e06081 | |
parent | f2987e1f3102cd0d4fbbfba87f7315e047294c6f (diff) | |
download | st-ad509637c4180d2b45db581ea81f21b405829f5a.tar.gz st-ad509637c4180d2b45db581ea81f21b405829f5a.tar.bz2 st-ad509637c4180d2b45db581ea81f21b405829f5a.zip |
Applied st-clipboard patch
-rw-r--r-- | patches/st-clipboard-0.8.3.diff | 12 | ||||
-rw-r--r-- | x.c | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/patches/st-clipboard-0.8.3.diff b/patches/st-clipboard-0.8.3.diff new file mode 100644 index 0000000..c1e0e9e --- /dev/null +++ b/patches/st-clipboard-0.8.3.diff @@ -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 @@ -686,6 +686,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 |