From 90566170227e8dcf74af5dfa3654c08faa18095b Mon Sep 17 00:00:00 2001 From: siduck76 Date: Wed, 13 Jan 2021 21:12:21 +0530 Subject: [PATCH] right click paste patch --- x.c | 2 +- x.c.orig | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/x.c b/x.c index 652f3cc8f6f52016fe34384a64a7192fb0e89351..a24d4c8a99c60b41230240949bf1b42384a1e2d6 100644 --- a/x.c +++ b/x.c @@ -695,7 +695,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); diff --git a/x.c.orig b/x.c.orig index 7e3a84ab0eb9d5e2dca62808d6f11ca2fc6b1fb7..652f3cc8f6f52016fe34384a64a7192fb0e89351 100644 --- a/x.c.orig +++ b/x.c.orig @@ -1719,8 +1719,6 @@ xsettitle(char *p) int xstartdraw(void) { - if (IS_SET(MODE_VISIBLE)) - XCopyArea(xw.dpy, xw.win, xw.buf, dc.gc, 0, 0, win.w, win.h, 0, 0); return IS_SET(MODE_VISIBLE); }