Clear window's event mask before enabling handled events.