[PATCH v3 1/7] winex11: Introduce a new get_window_state_updates helper.