The
XGetModifierMapping()
function returns a pointer to a newly created
XModifierKeymap
structure that contains the keys being used as modifiers.
The structure should be freed after use by calling
XFreeModifiermap().
If only zero values appear in the set for any modifier,
that modifier is disabled.