diff options
author | Pedro CĂ´rte-Real <pedro@pedrocr.net> | 2019-07-06 12:13:05 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-07-15 23:46:27 -0400 |
commit | 44c2fafa4f561969c5987293863e9dfd63fc2ada (patch) | |
tree | 21c00c3790b825b6cab6ebd68061a4d98fc2c256 /include | |
parent | Rework gaps code to be simpler and correct (diff) | |
download | sway-44c2fafa4f561969c5987293863e9dfd63fc2ada.tar.gz sway-44c2fafa4f561969c5987293863e9dfd63fc2ada.tar.zst sway-44c2fafa4f561969c5987293863e9dfd63fc2ada.zip |
Sanity check gaps between tiled containers
When the gaps become too large for the space available gracefully
reduced them all the way to 0 if needed.
Fixes #4294
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/node.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/tree/node.h b/include/sway/tree/node.h index 5b8c1909..470ee3b5 100644 --- a/include/sway/tree/node.h +++ b/include/sway/tree/node.h | |||
@@ -3,6 +3,9 @@ | |||
3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
4 | #include "list.h" | 4 | #include "list.h" |
5 | 5 | ||
6 | #define MIN_SANE_W 100 | ||
7 | #define MIN_SANE_H 60 | ||
8 | |||
6 | struct sway_root; | 9 | struct sway_root; |
7 | struct sway_output; | 10 | struct sway_output; |
8 | struct sway_workspace; | 11 | struct sway_workspace; |