[PATCH v2 1/6] winex11: Introduce a new get_window_state_updates helper.