summaryrefslogtreecommitdiff
path: root/app/cwm/input.c
diff options
context:
space:
mode:
authorBernd Ahlers <bernd@cvs.openbsd.org>2007-04-27 18:10:40 +0000
committerBernd Ahlers <bernd@cvs.openbsd.org>2007-04-27 18:10:40 +0000
commit034bd7a0cf741c5fe7de1e780d03fe862c3a18cb (patch)
tree757386c6ff64a08e0c8a356aa3068ca182df9e68 /app/cwm/input.c
parentaf7f50913a0e2a0c9979b3f7c7858f27f6967dc6 (diff)
Apply cwm-3-input_shift.diff from http://aon.iki.fi/cwm/.
Diffstat (limited to 'app/cwm/input.c')
-rw-r--r--app/cwm/input.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/cwm/input.c b/app/cwm/input.c
index cb34defc7..28ce7f4bc 100644
--- a/app/cwm/input.c
+++ b/app/cwm/input.c
@@ -4,7 +4,7 @@
* Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org>
* All rights reserved.
*
- * $Id: input.c,v 1.1 2007/04/27 17:58:48 bernd Exp $
+ * $Id: input.c,v 1.2 2007/04/27 18:10:39 bernd Exp $
*/
#include "headers.h"
@@ -19,7 +19,10 @@ input_keycodetrans(KeyCode kc, u_int state,
*ctl = CTL_NONE;
*chr = '\0';
- ks = XKeycodeToKeysym(G_dpy, kc, 0);
+ if (state & ShiftMask)
+ ks = XKeycodeToKeysym(G_dpy, kc, 1);
+ else
+ ks = XKeycodeToKeysym(G_dpy, kc, 0);
/* Look for control characters. */
switch (ks) {