fix XChangeWindowAttributes return type + indentation
Define and use ErrorCode and RequestCode instead of _uint8. Fix XGetErrorText