mirror of git://git.suckless.org/svkbd
fix unnecesary c99-ism, fixes compilation on OpenBSD using gcc
This commit is contained in:
parent
d19a80dfe5
commit
ea4b058833
3
svkbd.c
3
svkbd.c
|
@ -477,9 +477,10 @@ tmp_remap(KeySym keysym)
|
||||||
|
|
||||||
void
|
void
|
||||||
printkey(Key *k, KeySym mod) {
|
printkey(Key *k, KeySym mod) {
|
||||||
|
int i;
|
||||||
int shift = (mod == XK_Shift_L) || (mod == XK_Shift_R) || (mod == XK_Shift_Lock);
|
int shift = (mod == XK_Shift_L) || (mod == XK_Shift_R) || (mod == XK_Shift_Lock);
|
||||||
if (!shift) {
|
if (!shift) {
|
||||||
for (int i = 0; i < numkeys; i++) {
|
for (i = 0; i < numkeys; i++) {
|
||||||
if ((keys[i].pressed) && ((keys[i].keysym == XK_Shift_L) || (keys[i].keysym == XK_Shift_R) || (keys[i].keysym == XK_Shift_Lock))) {
|
if ((keys[i].pressed) && ((keys[i].keysym == XK_Shift_L) || (keys[i].keysym == XK_Shift_R) || (keys[i].keysym == XK_Shift_Lock))) {
|
||||||
shift = True;
|
shift = True;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue