mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Apply cwm-3-input_shift.diff from http://aon.iki.fi/cwm/.
This commit is contained in:
2
grab.c
2
grab.c
@@ -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) {
|
||||
|
5
input.c
5
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) {
|
||||
|
Reference in New Issue
Block a user