From 689add8aad04680b3882e08583ba9cbb7d91ca88 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 1 Apr 2020 09:40:53 -0400 Subject: [PATCH] middle click pastes selection again --- config.h | 3 +-- x.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index 58632e2..0c2115b 100644 --- a/config.h +++ b/config.h @@ -240,10 +240,9 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Prior, zoom, {.f = +1} }, { TERMMOD, XK_Next, zoom, {.f = -1} }, { MODKEY, XK_Home, zoomreset, {.f = 0} }, - { ShiftMask, XK_Insert, clippaste, {.i = 0} }, { MODKEY, XK_c, clipcopy, {.i = 0} }, + { ShiftMask, XK_Insert, clippaste, {.i = 0} }, { MODKEY, XK_v, clippaste, {.i = 0} }, - { MODKEY, XK_p, selpaste, {.i = 0} }, { XK_ANY_MOD, Button2, selpaste, {.i = 0} }, { MODKEY, XK_Num_Lock, numlock, {.i = 0} }, { MODKEY, XK_Control_L, iso14755, {.i = 0} }, diff --git a/x.c b/x.c index 1ee015e..93ba648 100644 --- a/x.c +++ b/x.c @@ -678,7 +678,7 @@ brelease(XEvent *e) } if (e->xbutton.button == Button2) - clippaste(NULL); + selpaste(NULL); else if (e->xbutton.button == Button1) mousesel(e, 1); }