view: Add view_set_output()

This commit is contained in:
John Lindgren 2023-02-28 11:46:48 -05:00 committed by Johan Malm
parent 55c6280322
commit 331f62f662
4 changed files with 28 additions and 15 deletions

View file

@ -96,7 +96,7 @@ ensure_initial_geometry_and_output(struct view *view)
* Just use the cursor output since we don't know yet
* whether the surface position is meaningful.
*/
view->output = output_nearest_to_cursor(view->server);
view_set_output(view, output_nearest_to_cursor(view->server));
}
}