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

This commit is contained in:
John Lindgren 2023-02-20 16:23:53 -05:00
parent 39ad4c4773
commit 25436a6c16
4 changed files with 16 additions and 19 deletions

View file

@ -131,9 +131,7 @@ void view_moved(struct view *view);
void view_minimize(struct view *view, bool minimized);
struct output *view_output(struct view *view);
void view_store_natural_geometry(struct view *view);
/* output is optional, defaults to current nearest output */
void view_center(struct view *view, struct output *output,
const struct wlr_box *ref);
void view_center(struct view *view, const struct wlr_box *ref);
void view_restore_to(struct view *view, struct wlr_box geometry);
void view_set_untiled(struct view *view);
void view_maximize(struct view *view, bool maximize,