window: move EventMask to it's own source file.