diff options
-rw-r--r-- | sway/tree/arrange.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c index 696d0e1f..7b88b3a2 100644 --- a/sway/tree/arrange.c +++ b/sway/tree/arrange.c @@ -262,8 +262,8 @@ void arrange_workspace(struct sway_workspace *workspace) { area->width, area->height, area->x, area->y); bool first_arrange = workspace->width == 0 && workspace->height == 0; - double prev_x = workspace->x; - double prev_y = workspace->y; + double prev_x = workspace->x - workspace->current_gaps.left; + double prev_y = workspace->y - workspace->current_gaps.top; workspace->width = area->width; workspace->height = area->height; workspace->x = output->lx + area->x; |