This function queries the X server with various requests, fetches the
details of the active keymap on a keyboard device, and creates an
xkb_keymap from these details.
@param context
The context in which to create the keymap.
@param connection
An XCB connection to the X server.
@param device_id
An XInput 1 device ID (in the range 0-255) with input class KEY.
Passing values outside of this range is an error.
@param flags
Optional flags for the keymap, or 0.
@returns A keymap retrieved from the X server, or NULL on failure.
Create a keymap from an X11 keyboard device.
This function queries the X server with various requests, fetches the details of the active keymap on a keyboard device, and creates an xkb_keymap from these details.
@param context The context in which to create the keymap. @param connection An XCB connection to the X server. @param device_id An XInput 1 device ID (in the range 0-255) with input class KEY. Passing values outside of this range is an error. @param flags Optional flags for the keymap, or 0.
@returns A keymap retrieved from the X server, or NULL on failure.
@memberof xkb_keymap