resize set: accept 'width' and 'height' keywords

Fixes #3275
This commit is contained in:
Orestis Floros
2018-05-02 18:59:17 +03:00
parent b901fc9464
commit c50bf50f09
5 changed files with 49 additions and 2 deletions

View File

@ -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