ws = workspace_prev_on_output();
else {
ELOG("BUG: called with which=%s\n", which);
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
void cmd_move_con_to_workspace_name(I3_CMD, char *name) {
if (strncasecmp(name, "__i3_", strlen("__i3_")) == 0) {
LOG("You cannot switch to the i3 internal workspaces.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
/* Error out early to not create a non-existing workspace (in
* workspace_get()) if we are not actually able to move anything. */
if (match_is_empty(current_match) && focused->type == CT_WORKSPACE) {
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
/* Error out early to not create a non-existing workspace (in
* workspace_get()) if we are not actually able to move anything. */
if (match_is_empty(current_match) && focused->type == CT_WORKSPACE) {
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
(strcmp(direction, "left") == 0 || strcmp(direction, "right") == 0))) {
LOG("You cannot resize in that direction. Your focus is in a %s split container currently.\n",
(orientation == HORIZ ? "horizontal" : "vertical"));
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
}
if (other == TAILQ_END(workspaces)) {
LOG("No other container in this direction found, cannot resize.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
LOG("other->percent = %f\n", other->percent);
strcmp(direction, "width") == 0)) {
LOG("You cannot resize in that direction. Your focus is in a %s split container currently.\n",
(orientation == HORIZ ? "horizontal" : "vertical"));
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
if (children == 1) {
LOG("This is the only container, cannot resize.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
continue;
if (!definitelyGreaterThan(child->percent - subtract_percent, 0.05, DBL_EPSILON)) {
LOG("Not resizing, already at minimum size (child %p would end up with a size of %.f\n", child, child->percent - subtract_percent);
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
}
if (!definitelyGreaterThan(new_current_percent, 0.05, DBL_EPSILON)) {
LOG("Not resizing, already at minimum size\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
border_style = BS_1PIXEL;
else {
ELOG("BUG: called with border_style=%s\n", border_style_str);
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
}
ws = workspace_prev_on_output();
else {
ELOG("BUG: called with which=%s\n", which);
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
void cmd_workspace_name(I3_CMD, char *name) {
if (strncasecmp(name, "__i3_", strlen("__i3_")) == 0) {
LOG("You cannot switch to the i3 internal workspaces.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
workspace_back_and_forth();
tree_render();
}
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
if (!output) {
LOG("No such output found.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
Con *ws = NULL;
GREP_FIRST(ws, output_get_content(output->con), workspace_is_visible(child));
if (!ws) {
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
Output *output = get_output_from_string(current_output, name);
if (!output) {
LOG("No such output\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
kill_mode = KILL_CLIENT;
else {
ELOG("BUG: called with kill_mode=%s\n", kill_mode_str);
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
focused->type != CT_WORKSPACE &&
focused->fullscreen_mode != CF_NONE) {
LOG("Cannot change focus while in fullscreen mode.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
tree_next('n', VERT);
else {
ELOG("Invalid focus direction (%s)\n", direction);
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
focused->type != CT_WORKSPACE &&
focused->fullscreen_mode != CF_NONE) {
LOG("Cannot change focus while in fullscreen mode.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
focused->type != CT_WORKSPACE &&
focused->fullscreen_mode != CF_NONE) {
LOG("Cannot change focus while in fullscreen mode.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
focused->type != CT_WORKSPACE &&
focused->fullscreen_mode != CF_NONE) {
LOG("Cannot change focus while in fullscreen mode.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
if (!output) {
LOG("No such output found.\n");
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}
Con *ws = NULL;
GREP_FIRST(ws, output_get_content(output->con), workspace_is_visible(child));
if (!ws) {
- cmd_output->json_output = sstrdup("{\"sucess\": false}");
+ cmd_output->json_output = sstrdup("{\"success\": false}");
return;
}