diff options
author | Kenny Levinsen <kl@kl.wtf> | 2021-02-08 01:03:44 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-09 09:37:10 +0100 |
commit | 50205ade9d7b3d4c014fce5364db329c29acfa86 (patch) | |
tree | 5bb5f51f6fd9caf58be821b534682afa51217c68 /include | |
parent | view: Save surface x and y on saved buffers (diff) | |
download | sway-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.h | 1 |
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, | |||
317 | void view_unmap(struct sway_view *view); | 317 | void view_unmap(struct sway_view *view); |
318 | 318 | ||
319 | void view_update_size(struct sway_view *view, int width, int height); | 319 | void view_update_size(struct sway_view *view, int width, int height); |
320 | void view_center_surface(struct sway_view *view); | ||
320 | 321 | ||
321 | void view_child_init(struct sway_view_child *child, | 322 | void 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, |