Shouldn't eventMask be currentEventMask | x11.eventMask.PropertyChange ?