Did `switch_to_displayed_app` not work here? We've been trying to remove the explicit frame switching as we can.