On 02/09/2013 03:57 AM, Daniel Zhang wrote:
Do you know how to fixed it? I did some try but could not find where should be fixed.

The offending function is grabkeyboard: XGrabKeyboard(dc->dpy, DefaultRootWindow(dc->dpy), True, GrabModeAsync, GrabModeAsync, CurrentTime).

Try deleting calls to grabkeyboard, leaving readstdin() alone. But then you need to take care of input focus elsewhere, such as with a window manager.

Reply via email to