clipboard patch

This commit is contained in:
murat 2025-01-13 23:59:00 +03:00
parent ebe230b5df
commit 658a24c025
6 changed files with 2121 additions and 0 deletions

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

BIN
st Executable file

Binary file not shown.

BIN
st.o Normal file

Binary file not shown.

1
x.c
View File

@ -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

2108
x.c.orig Normal file

File diff suppressed because it is too large Load Diff

BIN
x.o Normal file

Binary file not shown.