transaction: Move centering to view_center_surface

This will allow us to reuse it for centering elsewhere.
This commit is contained in:
Kenny Levinsen 2021-02-08 01:03:44 +01:00 committed by Simon Ser
parent cf1e3be228
commit 50205ade9d
3 changed files with 12 additions and 12 deletions

View file

@ -317,6 +317,7 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface,
void view_unmap(struct sway_view *view);
void view_update_size(struct sway_view *view, int width, int height);
void view_center_surface(struct sway_view *view);
void view_child_init(struct sway_view_child *child,
const struct sway_view_child_impl *impl, struct sway_view *view,