view: Eliminate view_output() and use view->output directly

This commit is contained in:
John Lindgren 2023-02-20 16:35:23 -05:00 committed by Johan Malm
parent 799f81ae05
commit 60fbb44f6a
3 changed files with 41 additions and 55 deletions

View file

@ -315,7 +315,7 @@ position_xdg_toplevel_view(struct view *view)
struct view *parent = lookup_view_by_xdg_toplevel(
view->server, parent_xdg_toplevel);
assert(parent);
view->output = view_output(parent);
view->output = parent->output;
view_center(view, &parent->pending);
}
}