From 54a348518df0b91ef8284d92c385d7477d9177a3 Mon Sep 17 00:00:00 2001 From: syrell Date: Tue, 20 Jun 2023 23:11:24 +0200 Subject: [PATCH 1/2] Added clipboard v2018-03-09 patch --- x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x.c b/x.c index 95f2e4c..7c9fe7c 100644 --- a/x.c +++ b/x.c @@ -689,6 +689,8 @@ setsel(char *str, Time t) XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t); if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win) selclear(); + + xclipcopy(); } void -- 2.45.2 From 75dea136dfb515bdc6bb4efbcebfb02361e60d23 Mon Sep 17 00:00:00 2001 From: syrell Date: Tue, 27 Jun 2023 20:54:16 +0200 Subject: [PATCH 2/2] Added paste on right click --- x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x.c b/x.c index 7c9fe7c..f6c3b80 100644 --- a/x.c +++ b/x.c @@ -714,7 +714,9 @@ brelease(XEvent *e) if (mouseaction(e, 1)) return; - if (btn == Button1) + if (btn == Button3) + selpaste(NULL); + else if (btn == Button1) mousesel(e, 1); } -- 2.45.2