summaryrefslogtreecommitdiff
path: root/utils/st-0.9/st-rightclickpaste-0.8.2.diff
blob: d9594173e399022ed506d41daeba9912684077a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 111e5d0311f174592ccecee2af11067103abaee7 Mon Sep 17 00:00:00 2001
From: aleks <aleks.stier@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
@@ -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