summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-02-08 01:03:44 +0100
committerFurkan Sahin <furkan-dev@proton.me>2021-02-08 01:03:44 +0100
commitcc662bab7a30a668cbf4120a45f69b9bb6a42e01 (patch)
tree5bb5f51f6fd9caf58be821b534682afa51217c68 /include
parentfbcb87aeae5f8f563188ff061ade0d0b322b0431 (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,