[hackers] [dmenu] fix paste from clipboard (ctrl+shift+y) || Hiltjo Posthuma
commit 240a7810e492ec01075614729a1a1c45ef9f7af2
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sun Oct 4 12:32:07 2015 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sun Oct 4 12:32:07 2015 +0200
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."
diff --git a/dmenu.c b/dmenu.c
index 071cbc1..509e566 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -320,6 +320,7 @@ keypress(XKeyEvent *ev)
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;
Received on Sun Oct 04 2015 - 12:39:51 CEST
This archive was generated by hypermail 2.3.0
: Sun Oct 04 2015 - 12:48:11 CEST