aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-07-06 12:13:05 +0100
committerFurkan Sahin <furkan-dev@proton.me>2019-07-06 12:13:05 +0100
commit9902866da738a9b08132d8e585206e2bfe4eaee8 (patch)
tree21c00c3790b825b6cab6ebd68061a4d98fc2c256 /include
parentdc24ad12075c353302dc43f6f62e8aba826d1630 (diff)
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.h3
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 @@
#include <stdbool.h>
#include "list.h"
+#define MIN_SANE_W 100
+#define MIN_SANE_H 60
+
struct sway_root;
struct sway_output;
struct sway_workspace;