The XUngrabPointer function releases the pointer and any queued events if this client has actively grabbed the pointer from XGrabPointer , XGrabButton , or from a normal button press. It also generates EnterNotify and LeaveNotify events. This function has no effect on the passive parameters of a XGrabButton . XChangeActivePointerGrab can generate a BadCursor and BadValue error. Diagnostics BadCursor A value for a Cursor argument does not name a defined Cursor.
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.