mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Rework gaps code to be simpler and correct
Instead of tracking gaps per child apply gaps in two logical places: 1. In tiled containers use the layout code to add the gaps between windows. This is much simpler and guarantees that the sizing of children is correct. 2. In the workspace itself apply all the gaps around the edge. Here we're in the correct position to size inner and outer gaps correctly and decide on smart gaps in a single location. Fixes #4296
This commit is contained in:
parent
2dc4978d8a
commit
d0233af3b3
6 changed files with 53 additions and 136 deletions
|
|
@ -235,7 +235,6 @@ static void container_move_to_container(struct sway_container *container,
|
|||
struct sway_workspace *old_workspace = container->workspace;
|
||||
|
||||
container_detach(container);
|
||||
container_remove_gaps(container);
|
||||
container->width = container->height = 0;
|
||||
container->width_fraction = container->height_fraction = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue