Fix command parser: resizing tiling windows
Patch status: superseded
Patch by johannes karoff
Long description:
i3 would accept an invalid resize command like 'resize shrink width 10 px or' without specifying the ppt value, and then crash. This patch fixes the parser specification.
To apply this patch, use:
curl http://cr.i3wm.org/patch/260/raw.patch | git am
b/parser-specs/commands.spec
16 |
@@ -209,11 +209,11 @@ state RESIZE_TILING: |
17 |
-> call cmd_resize($way, $direction, $resize_px, "10") |
18 |
|
19 |
state RESIZE_TILING_OR: |
20 |
- 'ppt' |
21 |
- -> |
22 |
resize_ppt = word |
23 |
- -> |
24 |
- end |
25 |
+ -> RESIZE_TILING_FINAL |
26 |
+ |
27 |
+state RESIZE_TILING_FINAL: |
28 |
+ 'ppt', end |
29 |
-> call cmd_resize($way, $direction, $resize_px, $resize_ppt) |
30 |
|
31 |
# rename workspace <name> to <name> |