Apply cwm-3-input_shift.diff from http://aon.iki.fi/cwm/.

This commit is contained in:
bernd 2007-04-27 18:10:39 +00:00
parent 890a32aa33
commit 8d60503290
2 changed files with 5 additions and 2 deletions

2
grab.c
View File

@ -378,7 +378,7 @@ grab_label(struct client_ctx *cc)
switch (e.type) {
case KeyPress:
if (input_keycodetrans(e.xkey.keycode, e.xkey.state,
&ctl, &chr, 1) < 0)
&ctl, &chr, 0) < 0)
continue;
switch (ctl) {

View File

@ -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) {