If only zero values appear in the set for any modifier, that modifier is disabled. The XNewModifiermap function returns a pointer to XModifierKeymap structure for later use. The XDeleteModifiermapEntry function deletes the specified KeyCode from the set that controls the specified modifier and returns a pointer to the resulting XModifierKeymap structure. The XFreeModifiermap function frees the specified XModifierKeymap structure. The server failed to allocate the requested resource or server memory.
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.