about summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
authorbernd <bernd>2007-04-27 18:10:39 +0000
committerbernd <bernd>2007-04-27 18:10:39 +0000
commit8d6050329032f6f294118f53e0902a3a9e8afe7e (patch)
tree6d6dba031ad8a82627878ab9b750f828714dd6ec /input.c
parent890a32aa33a71b66c2b976342ffad80150f05bb8 (diff)
downloadcwm-8d6050329032f6f294118f53e0902a3a9e8afe7e.tar.gz
cwm-8d6050329032f6f294118f53e0902a3a9e8afe7e.tar.xz
cwm-8d6050329032f6f294118f53e0902a3a9e8afe7e.zip
Apply cwm-3-input_shift.diff from http://aon.iki.fi/cwm/.
Diffstat (limited to 'input.c')
-rw-r--r--input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/input.c b/input.c
index 95f30f8..821ed24 100644
--- a/input.c
+++ b/input.c
@@ -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) {