[wiki] [sites] [st][patch][rightclickpaste] Add patch || aleks
commit f294c8bbacac51d2956dd1e387c942ec65d8a778
Author: aleks <aleks.stier_AT_icloud.com>
Date: Sun Aug 11 03:27:38 2019 +0200
[st][patch][rightclickpaste] Add patch
diff --git a/st.suckless.org/patches/rightclickpaste/index.md b/st.suckless.org/patches/rightclickpaste/index.md
new file mode 100644
index 00000000..0c0a8877
--- /dev/null
+++ b/st.suckless.org/patches/rightclickpaste/index.md
_AT_@ -0,0 +1,16 @@
+rightclickpaste
+===============
+
+Description
+-----------
+Pressing right-click pastes from the primary-selection.
+If combined with the clipboard-patch right-click pastes from the clipboard.
+Middle-click does nothing.
+
+Download
+--------
+* [st-rightclickpaste-0.8.2.diff](st-rightclickpaste-0.8.2.diff)
+
+Authors
+-------
+* Aleksandrs Stier
diff --git a/st.suckless.org/patches/rightclickpaste/st-rightclickpaste-0.8.2.diff b/st.suckless.org/patches/rightclickpaste/st-rightclickpaste-0.8.2.diff
new file mode 100644
index 00000000..d9594173
--- /dev/null
+++ b/st.suckless.org/patches/rightclickpaste/st-rightclickpaste-0.8.2.diff
_AT_@ -0,0 +1,28 @@
+From 111e5d0311f174592ccecee2af11067103abaee7 Mon Sep 17 00:00:00 2001
+From: aleks <aleks.stier_AT_icloud.com>
+Date: Sun, 11 Aug 2019 03:15:26 +0200
+Subject: [PATCH] Make right-click paste
+
+Pressing right-click pastes from the primary-selection.
+If combined with the clipboard-patch right-click pastes from the clipboard.
+Middle-click does nothing.
+---
+ x.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/x.c b/x.c
+index 0422421..13a5849 100644
+--- a/x.c
++++ b/x.c
+_AT_@ -643,7 +643,7 @@ brelease(XEvent *e)
+ return;
+ }
+
+- if (e->xbutton.button == Button2)
++ if (e->xbutton.button == Button3)
+ selpaste(NULL);
+ else if (e->xbutton.button == Button1)
+ mousesel(e, 1);
+--
+2.22.0
+
Received on Sun Aug 11 2019 - 03:32:41 CEST
This archive was generated by hypermail 2.3.0
: Sun Aug 11 2019 - 03:36:29 CEST