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:
parent
890a32aa33
commit
8d60503290
2
grab.c
2
grab.c
|
@ -378,7 +378,7 @@ grab_label(struct client_ctx *cc)
|
||||||
switch (e.type) {
|
switch (e.type) {
|
||||||
case KeyPress:
|
case KeyPress:
|
||||||
if (input_keycodetrans(e.xkey.keycode, e.xkey.state,
|
if (input_keycodetrans(e.xkey.keycode, e.xkey.state,
|
||||||
&ctl, &chr, 1) < 0)
|
&ctl, &chr, 0) < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
switch (ctl) {
|
switch (ctl) {
|
||||||
|
|
5
input.c
5
input.c
|
@ -19,7 +19,10 @@ input_keycodetrans(KeyCode kc, u_int state,
|
||||||
*ctl = CTL_NONE;
|
*ctl = CTL_NONE;
|
||||||
*chr = '\0';
|
*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. */
|
/* Look for control characters. */
|
||||||
switch (ks) {
|
switch (ks) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user