You can pass either a timestamp or CurrentTime . Further key events are reported only to the grabbing client. Both KeyPress and KeyRelease events are always reported, independent of any event selection made by the client. If the keyboard is currently frozen by this client, then processing of keyboard events is resumed. If the keyboard is frozen by an active grab of another client, it fails and returns GrabFrozen .
Some numeric value falls outside the range of values accepted by the request.
Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error. BadWindow A value for a Window argument does not name a defined Window.