|
|
@ -295,7 +295,7 @@ grabkeyboard(void) { |
|
|
|
|
|
|
|
|
|
|
|
for(len = 1000; len; len--) { |
|
|
|
for(len = 1000; len; len--) { |
|
|
|
if(XGrabKeyboard(dpy, root, True, GrabModeAsync, GrabModeAsync, CurrentTime) |
|
|
|
if(XGrabKeyboard(dpy, root, True, GrabModeAsync, GrabModeAsync, CurrentTime) |
|
|
|
== GrabSuccess) |
|
|
|
== GrabSuccess) |
|
|
|
break; |
|
|
|
break; |
|
|
|
usleep(1000); |
|
|
|
usleep(1000); |
|
|
|
} |
|
|
|
} |
|
|
@ -361,8 +361,8 @@ kpress(XKeyEvent * e) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(IsFunctionKey(ksym) || IsKeypadKey(ksym) |
|
|
|
if(IsFunctionKey(ksym) || IsKeypadKey(ksym) |
|
|
|
|| IsMiscFunctionKey(ksym) || IsPFKey(ksym) |
|
|
|
|| IsMiscFunctionKey(ksym) || IsPFKey(ksym) |
|
|
|
|| IsPrivateKeypadKey(ksym)) |
|
|
|
|| IsPrivateKeypadKey(ksym)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
/* first check if a control mask is omitted */ |
|
|
|
/* first check if a control mask is omitted */ |
|
|
|
if(e->state & ControlMask) { |
|
|
|
if(e->state & ControlMask) { |
|
|
|