aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2021-02-08 01:03:44 +0100
committerSimon Ser <contact@emersion.fr>2021-02-09 09:37:10 +0100
commit50205ade9d7b3d4c014fce5364db329c29acfa86 (patch)
tree5bb5f51f6fd9caf58be821b534682afa51217c68 /include
parentcf1e3be22813d343ec177d48a926d7d9104230dd (diff)
transaction: Move centering to view_center_surface
This will allow us to reuse it for centering elsewhere.
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/view.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index e071e6c9..18dc2019 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -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,