[PATCH v2 4/5] server: Detach the parent window thread input when reparenting.