middle click pastes selection again

This commit is contained in:
Luke Smith 2020-04-01 09:40:53 -04:00
parent e7db668a0a
commit 689add8aad
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
2 changed files with 2 additions and 3 deletions

View File

@ -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} },

2
x.c
View File

@ -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);
}