From d0233af3b39475b47be4248846536811ddca2624 Mon Sep 17 00:00:00 2001 From: Pedro CĂ´rte-Real Date: Sat, 6 Jul 2019 11:57:32 +0100 Subject: 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 --- sway/commands/move.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sway/commands') diff --git a/sway/commands/move.c b/sway/commands/move.c index 2a1993ae..5779b431 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c @@ -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; -- cgit v1.2.3