[PATCH 1/5] server: Reset the reported event mask in set_socket_event only when using window messages.