added EventConfigure and EventMask