Add support to resize floating container in percentage

resize set is modified to accept both 'px' and 'ppt' height and width.

Fixes #2816.
This commit is contained in:
Orestis Floros
2017-10-18 02:04:42 +03:00
parent d4eaea8289
commit b17e7b82c6
5 changed files with 75 additions and 10 deletions

View File

@ -66,7 +66,7 @@ void cmd_move_con_to_workspace_number(I3_CMD, const char *which, const char *no_
* Implementation of 'resize set <px> [px] <px> [px]'.
*
*/
void cmd_resize_set(I3_CMD, long cwidth, long cheight);
void cmd_resize_set(I3_CMD, long cwidth, const char *mode_width, long cheight, const char *mode_height);
/**
* Implementation of 'resize grow|shrink <direction> [<px> px] [or <ppt> ppt]'.