aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Kenny Levinsen <kl@kl.wtf>2021-02-08 01:03:44 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2021-02-09 09:37:10 +0100
commit50205ade9d7b3d4c014fce5364db329c29acfa86 (patch)
tree5bb5f51f6fd9caf58be821b534682afa51217c68 /include
parentview: Save surface x and y on saved buffers (diff)
downloadsway-50205ade9d7b3d4c014fce5364db329c29acfa86.tar.gz
sway-50205ade9d7b3d4c014fce5364db329c29acfa86.tar.zst
sway-50205ade9d7b3d4c014fce5364db329c29acfa86.zip
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,
317void view_unmap(struct sway_view *view); 317void view_unmap(struct sway_view *view);
318 318
319void view_update_size(struct sway_view *view, int width, int height); 319void view_update_size(struct sway_view *view, int width, int height);
320void view_center_surface(struct sway_view *view);
320 321
321void view_child_init(struct sway_view_child *child, 322void view_child_init(struct sway_view_child *child,
322 const struct sway_view_child_impl *impl, struct sway_view *view, 323 const struct sway_view_child_impl *impl, struct sway_view *view,