Create ws in "move workspace number n" if not existing

fixes #729
next
Sebastian Ullrich 2012-08-20 12:36:10 +02:00 committed by Michael Stapelberg
parent 4622cde7b7
commit bb853660cf
1 changed files with 1 additions and 8 deletions

View File

@ -486,14 +486,7 @@ void cmd_move_con_to_workspace_number(I3_CMD, char *which) {
child->num == parsed_num);
if (!workspace) {
y(map_open);
ystr("success");
y(bool, false);
ystr("error");
// TODO: better error message
ystr("No such workspace");
y(map_close);
return;
workspace = workspace_get(which, NULL);
}
HANDLE_EMPTY_MATCH;