aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorPedro CĂ´rte-Real <pedro@pedrocr.net>2019-07-06 12:13:05 +0100
committerBrian Ashworth <bosrsf04@gmail.com>2019-07-15 23:46:27 -0400
commit44c2fafa4f561969c5987293863e9dfd63fc2ada (patch)
tree21c00c3790b825b6cab6ebd68061a4d98fc2c256 /sway/commands
parentd0233af3b39475b47be4248846536811ddca2624 (diff)
downloadsway-44c2fafa4f561969c5987293863e9dfd63fc2ada.tar.xz
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')
-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 @@
#define AXIS_HORIZONTAL (WLR_EDGE_LEFT | WLR_EDGE_RIGHT)
#define AXIS_VERTICAL (WLR_EDGE_TOP | WLR_EDGE_BOTTOM)
-static const int MIN_SANE_W = 100, MIN_SANE_H = 60;
-
enum resize_unit {
RESIZE_UNIT_PX,
RESIZE_UNIT_PPT,