mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
transaction: Move centering to view_center_surface
This will allow us to reuse it for centering elsewhere.
This commit is contained in:
parent
cf1e3be228
commit
50205ade9d
3 changed files with 12 additions and 12 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue