all repos — dmenu @ 240a7810e492ec01075614729a1a1c45ef9f7af2

my build of dmenu

fix paste from clipboard (ctrl+shift+y)

from Joshua Lloret on the ML:

"attached is a small patch to enable pasting from clipboard, as well as primary.

It seems like there was already code in there to allow this, but since there was never any case to match the upper case 'Y', that inline if would always evaluate to false."
Hiltjo Posthuma
Sun, 04 Oct 2015 12:32:07 +0200




1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M dmenu.cdmenu.c

@@ -320,6 +320,7 @@ while (cursor > 0 && text[nextrune(-1)] != ' ')

insert(NULL, nextrune(-1) - cursor); break; case XK_y: /* paste selection */ + case XK_Y: XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY, utf8, utf8, win, CurrentTime); return;