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.

-Joshua Lloret
diff --git a/dmenu.c b/dmenu.c
index 4ea95f8..306dc61 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -272,6 +272,7 @@ keypress(XKeyEvent *ev) {
                                insert(NULL, nextrune(-1) - cursor);
                        break;
                case XK_y: /* paste selection */
+               case XK_Y:
                        XConvertSelection(dc->dpy, (ev->state & ShiftMask) ? 
clip : XA_PRIMARY,
                                          utf8, utf8, win, CurrentTime);
                        return;

Reply via email to