updated XClientMessageEvent union-like functionality to act according to format flag