aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/resize.c
diff options
context:
space:
mode:
authorLibravatar Pedro CĂ´rte-Real <pedro@pedrocr.net>2019-07-06 12:13:05 +0100
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-07-15 23:46:27 -0400
commit44c2fafa4f561969c5987293863e9dfd63fc2ada (patch)
tree21c00c3790b825b6cab6ebd68061a4d98fc2c256 /sway/commands/resize.c
parentRework gaps code to be simpler and correct (diff)
downloadsway-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 'sway/commands/resize.c')
-rw-r--r--sway/commands/resize.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sway/commands/resize.c b/sway/commands/resize.c
index 28f2552e..4cefe60b 100644
--- a/sway/commands/resize.c
+++ b/sway/commands/resize.c
@@ -15,8 +15,6 @@
15#define AXIS_HORIZONTAL (WLR_EDGE_LEFT | WLR_EDGE_RIGHT) 15#define AXIS_HORIZONTAL (WLR_EDGE_LEFT | WLR_EDGE_RIGHT)
16#define AXIS_VERTICAL (WLR_EDGE_TOP | WLR_EDGE_BOTTOM) 16#define AXIS_VERTICAL (WLR_EDGE_TOP | WLR_EDGE_BOTTOM)
17 17
18static const int MIN_SANE_W = 100, MIN_SANE_H = 60;
19
20enum resize_unit { 18enum resize_unit {
21 RESIZE_UNIT_PX, 19 RESIZE_UNIT_PX,
22 RESIZE_UNIT_PPT, 20 RESIZE_UNIT_PPT,