swayfx/sway
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
..
commands Implement per side and per direction outer gaps 2018-11-07 22:44:11 -05:00
config swaybar: show hidden bar on key event 2018-10-14 13:33:12 +01:00
desktop Use wlr_surface_get_effective_damage 2018-11-04 23:21:37 +01:00
input Add focus_follows_mouse always. (#3081) 2018-11-06 21:58:08 +01:00
tree Implement per side and per direction outer gaps 2018-11-07 22:44:11 -05:00
commands.c commands: replace EXPECTED_LESS_THAN with EXPECTED_AT_MOST 2018-10-23 10:51:54 +01:00
config.c Implement per side and per direction outer gaps 2018-11-07 22:44:11 -05:00
criteria.c Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
debug-tree.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
decoration.c Rename view_set_csd_from_client to view_update_csd_from_client 2018-09-27 22:51:37 +10:00
ipc-json.c ipc: move refresh from output to output->current_mode 2018-11-03 15:09:34 -07:00
ipc-server.c Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
main.c Teardown compositor when failing to drop permissions 2018-11-01 18:50:06 +01:00
meson.build Remove raise_floating directive 2018-10-20 17:51:32 +10:00
security.c Add minimal config subsystem 2017-12-05 10:40:55 +01:00
server.c Implement the presentation-time protocol 2018-10-23 23:38:57 +02:00
sway-bar.5.scd swaybar: add documentation for hide/hidden_state subcommands 2018-10-14 13:33:12 +01:00
sway-input.5.scd Establish sway-output(5) 2018-10-14 10:52:57 -04:00
sway-output.5.scd Add relative output transform 2018-11-05 22:58:27 +00:00
sway.1.scd Establish sway-output(5) 2018-10-14 10:52:57 -04:00
sway.5.scd Implement per side and per direction outer gaps 2018-11-07 22:44:11 -05:00
swaynag.c Allow swaynag to be disabled 2018-10-08 09:59:38 -04:00
xdg_decoration.c Improve CSD logic 2018-09-27 22:51:37 +10:00