The server may retain the recent history of the pointer motion and do so to a finer granularity than is reported by MotionNotify events. The XGetMotionEvents function makes this history available. If the stop time is in the future, it is equivalent to specifying CurrentTime . XGetMotionEvents can generate a BadWindow error. The x and y members are set to the coordinates of the pointer and are reported relative to the origin of the specified window.
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.