view: Set view->output prior to calling view_center()

This commit is contained in:
John Lindgren 2023-02-20 16:23:53 -05:00 committed by Johan Malm
parent bdbbbb2e62
commit a9cbbe1e41
4 changed files with 16 additions and 19 deletions

View file

@ -400,7 +400,7 @@ set_initial_position(struct view *view,
/* Just make sure the view is on-screen */
view_adjust_for_layout_change(view);
} else {
view_center(view, output_nearest_to_cursor(view->server), NULL);
view_center(view, NULL);
}
}