aboutsummaryrefslogtreecommitdiff
path: root/parser-specs
diff options
context:
space:
mode:
authorOrestis Floros <orestisf1993@gmail.com>2017-10-18 02:04:42 +0300
committerOrestis Floros <orestisf1993@gmail.com>2017-10-18 02:07:11 +0300
commitb17e7b82c602b946594006bb3019f47bd8262f14 (patch)
tree6749c27133c05525edfb516c2a14daed1ed35aaf /parser-specs
parentd4eaea8289104f97222be2650924ed64be9a94e6 (diff)
downloadi3-b17e7b82c602b946594006bb3019f47bd8262f14.tar.gz
i3-b17e7b82c602b946594006bb3019f47bd8262f14.zip
Add support to resize floating container in percentage
resize set is modified to accept both 'px' and 'ppt' height and width. Fixes #2816.
Diffstat (limited to 'parser-specs')
-rw-r--r--parser-specs/commands.spec8
1 files changed, 5 insertions, 3 deletions
diff --git a/parser-specs/commands.spec b/parser-specs/commands.spec
index a5873328..0289fa1a 100644
--- a/parser-specs/commands.spec
+++ b/parser-specs/commands.spec
@@ -258,14 +258,16 @@ state RESIZE_SET:
-> RESIZE_WIDTH
state RESIZE_WIDTH:
- 'px'
+ mode_width = 'px', 'ppt'
->
height = number
-> RESIZE_HEIGHT
state RESIZE_HEIGHT:
- 'px', end
- -> call cmd_resize_set(&width, &height)
+ mode_height = 'px', 'ppt'
+ ->
+ end
+ -> call cmd_resize_set(&width, $mode_width, &height, $mode_height)
# rename workspace <name> to <name>
# rename workspace to <name>