aboutsummaryrefslogtreecommitdiff
path: root/parser-specs
diff options
context:
space:
mode:
authorOrestis Floros <orestisf1993@gmail.com>2018-05-02 18:59:17 +0300
committerOrestis Floros <orestisf1993@gmail.com>2018-05-02 19:02:38 +0300
commitc50bf50f09cb428c94ffacd5e37f7a5a47c01248 (patch)
tree7afe5a921d3584de70dfc614dc764ce88dac1f56 /parser-specs
parentb901fc94649a8004caf45f721714bd804f5969b1 (diff)
downloadi3-c50bf50f09cb428c94ffacd5e37f7a5a47c01248.tar.gz
i3-c50bf50f09cb428c94ffacd5e37f7a5a47c01248.zip
resize set: accept 'width' and 'height' keywords
Fixes #3275
Diffstat (limited to 'parser-specs')
-rw-r--r--parser-specs/commands.spec12
1 files changed, 12 insertions, 0 deletions
diff --git a/parser-specs/commands.spec b/parser-specs/commands.spec
index 106dac99..c0c32933 100644
--- a/parser-specs/commands.spec
+++ b/parser-specs/commands.spec
@@ -254,12 +254,24 @@ state RESIZE_TILING_FINAL:
-> call cmd_resize($way, $direction, &resize_px, &resize_ppt)
state RESIZE_SET:
+ 'height'
+ -> RESIZE_HEIGHT_GET_NUMBER
+ 'width'
+ ->
width = number
-> RESIZE_WIDTH
state RESIZE_WIDTH:
mode_width = 'px', 'ppt'
->
+ end
+ -> call cmd_resize_set(&width, $mode_width, 0, 0)
+ 'height'
+ -> RESIZE_HEIGHT_GET_NUMBER
+ height = number
+ -> RESIZE_HEIGHT
+
+state RESIZE_HEIGHT_GET_NUMBER:
height = number
-> RESIZE_HEIGHT