We need to clear it because if Xwayland restarts, the future Xwayland instance may have different cursor ids.