swayfx/include/sway/tree
Brian Ashworth 9e8aa39530 Implement per side and per direction outer gaps
This introduces the following command extensions from `i3-gaps`:
* `gaps horizontal|vertical|top|right|bottom|left <amount>`
* `gaps horizontal|vertical|top|right|bottom|left all|current
set|plus|minus <amount>`
* `workspace <ws> gaps horizontal|vertical|top|right|bottom|left
<amount>`

`inner` and `outer` are also still available as options for all three
of the above commands. `outer` now acts as a shorthand to set/alter
all sides.

Additionally, this fixes two bugs with the prevention of invalid gap
configurations for workspace configs:
1. If outer gaps were not set and inner gaps were, the outer gaps
would be snapped to the negation of the inner gaps due to `INT_MIN`
being less than the negation. This took precedence over the default
outer gaps.
2. Similarly, if inner gaps were not set and outer gaps were, inner
gaps would be set to zero, which would take precedence over the
default inner gaps.

Fixing both of the above items also requires checking the gaps again
when creating a workspace since the default outer gaps can be smaller
than the negation of the workspace specific inner gaps.
2018-11-07 22:44:11 -05:00
..
arrange.h Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
container.h Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
node.h Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
output.h move output create to its own file 2018-04-03 20:00:09 -04:00
root.h Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
view.h Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
workspace.h Implement per side and per direction outer gaps 2018-11-07 22:44:11 -05:00