[PATCH 7/8] winex11: Use pending_state.wm_state to decide whether a window is mapped.