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

@ -686,7 +686,7 @@ void cmd_resize_set(I3_CMD, long cwidth, const char *mode_width, long cheight, c
}
}
if (cheight > 0 && mode_width && strcmp(mode_width, "ppt") == 0) {
if (cheight > 0 && mode_height && strcmp(mode_height, "ppt") == 0) {
/* get the appropriate current container (skip stacked/tabbed cons) */
Con *target = current->con;
Con *dummy;