- Fix a bug that client window event masks are not restored in map_win(), causing further property changes to be ignored, for example. - Misc changes.