To release previously grabbed extended input device buttons,
use
XHPUngrabDeviceButton.
int XHPUngrabDeviceButton(display, deviceid, button, modifiers, ungrab_window) Display *display; XID deviceid; unsigned int button; unsigned int modifiers; Window ungrab_window;
|
Title not available (Ungrabbing Extended Input Device Buttons )
- display
Specifies the connection to the X server.
- deviceid
Specifies the ID of the desired device.
- button
Specifies the code of the button that is to be ungrabbed.
You can pass either the button or AnyButton.
- modifiers
Specifies the set of keymasks. This mask is the
bitwise inclusive OR of these keymask bits: ShiftMask,
LockMask, ControlMask,
Mod1Mask, Mod2Mask,
Mod3Mask, Mod4Mask, and
Mod5Mask. You
can also pass AnyModifier,
which is equivalent to issuing the ungrab request for all possible
modifier combinations (including the combination of no modifiers).
- ungrab_window
Specifies the ID of a window associated with the
device specified above.
XHPUngrabDeviceButton
is provided to support the use of input devices other than the X
keyboard and the X pointer device. It allows a client to remove
a grab on a button on an extended input device. That device must
have previously been opened (turned on) using XHPSetInputDevice.
XHPUngrabDeviceButton
cannot be used to ungrab a button on the X pointer device. Use the
core XUngrabButton
function for that purpose.
XHPUngrabDeviceButton
can generate BadDevice
and BadWindow
errors.