xdg_shell: Move floating window with attach point

The buffer attach point was previously just used as an offset used
during buffer rendering, while the purpose of the attach point is to
move the window itself by the delta value.

Use the delta to move floating containers, ignore it for tiling
containers, and remove it as a variable in rendering.

Closes: https://github.com/swaywm/sway/issues/6020
This commit is contained in:
Kenny Levinsen 2021-02-11 01:34:04 +01:00
parent b1b104152e
commit 728aca6155
5 changed files with 15 additions and 7 deletions

View file

@ -316,7 +316,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);
void view_update_size(struct sway_view *view, int dx, int dy);
void view_center_surface(struct sway_view *view);
void view_child_init(struct sway_view_child *child,