HPlogo HP Xlib Extensions: > Chapter 6 HP Input Device Extension Functions

Ungrabbing Extended Input Device Keys

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

To release previously grabbed extended input device keys on an extended input device, use XHPUngrabDeviceKey.

int XHPUngrabDeviceKey(display, deviceid, keycode,
modifiers, ungrab_window)
Display *display;
XID deviceid;
unsigned int keycode;
unsigned int modifiers;
Window ungrab_window;

Title not available (Ungrabbing Extended Input Device Keys )

display

Specifies the connection to the X server.

deviceid

Specifies the ID of the desired device.

keycode

Specifies the code of the key that is to be ungrabbed. You can pass either the key or AnyKey.

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.

XHPUngrabDeviceKey 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 key on an extended input device. That device must have previously been opened (turned on) using XHPSetInputDevice.

XHPUngrabDeviceKey can generate BadDevice and BadWindow errors.

© 1995 Hewlett-Packard Development Company, L.P.