diff options
author | Orestis Floros <orestisf1993@gmail.com> | 2018-05-02 18:59:17 +0300 |
---|---|---|
committer | Orestis Floros <orestisf1993@gmail.com> | 2018-05-02 19:02:38 +0300 |
commit | c50bf50f09cb428c94ffacd5e37f7a5a47c01248 (patch) | |
tree | 7afe5a921d3584de70dfc614dc764ce88dac1f56 /parser-specs | |
parent | b901fc94649a8004caf45f721714bd804f5969b1 (diff) | |
download | i3-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.spec | 12 |
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 |