mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
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:
parent
b1b104152e
commit
728aca6155
5 changed files with 15 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue