aboutsummaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-10-04 12:32:07 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-10-04 12:32:07 +0200
commit240a7810e492ec01075614729a1a1c45ef9f7af2 (patch)
tree7ed078b3273143133dd548cbaa7bdc3505de13ba /dmenu.c
parentd5ce8df9d9a86bf0d1cb97e4cfe4cd6951f2f1f5 (diff)
downloaddmenu-240a7810e492ec01075614729a1a1c45ef9f7af2.tar.gz
dmenu-240a7810e492ec01075614729a1a1c45ef9f7af2.tar.bz2
dmenu-240a7810e492ec01075614729a1a1c45ef9f7af2.zip
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."
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dmenu.c b/dmenu.c
index 071cbc1..509e566 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -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;