st-rightclickpaste-0.8.2.diff (703B)
1 From 111e5d0311f174592ccecee2af11067103abaee7 Mon Sep 17 00:00:00 2001 2 From: aleks <aleks.stier@icloud.com> 3 Date: Sun, 11 Aug 2019 03:15:26 +0200 4 Subject: [PATCH] Make right-click paste 5 6 Pressing right-click pastes from the primary-selection. 7 If combined with the clipboard-patch right-click pastes from the clipboard. 8 Middle-click does nothing. 9 --- 10 x.c | 2 +- 11 1 file changed, 1 insertion(+), 1 deletion(-) 12 13 diff --git a/x.c b/x.c 14 index 0422421..13a5849 100644 15 --- a/x.c 16 +++ b/x.c 17 @@ -643,7 +643,7 @@ brelease(XEvent *e) 18 return; 19 } 20 21 - if (e->xbutton.button == Button2) 22 + if (e->xbutton.button == Button3) 23 selpaste(NULL); 24 else if (e->xbutton.button == Button1) 25 mousesel(e, 1); 26 -- 27 2.22.0 28