gaps: make workspace gap assignments order-independent (#5259)

This commit moves subtracting the global gaps from the workspace gaps:
previously, this calculation was done while parsing the configuration
(order dependent), now it’s done at workspace assignment evaluation time.

related to https://github.com/i3/i3/issues/3724

fixes https://github.com/i3/i3/issues/5253
This commit is contained in:
Michael Stapelberg
2022-11-07 19:02:57 +01:00
committed by GitHub
parent 14795c303c
commit 804bca3a9a
5 changed files with 69 additions and 16 deletions

View File

@ -1476,8 +1476,7 @@ between a screen edge and a window (or split container) will be the sum of outer
and inner gaps.
You can define gaps either globally or per workspace using the following
syntax. Note that the gaps configurations should be ordered from least specific
to most specific as some directives can overwrite others.
syntax.
*Syntax*:
-----------------------