LOG("focusing %p / %s\n", current->con, current->con->name);
con_focus(current->con);
}
+
+ tree_render();
}
;
}
}
+ tree_render();
}
;
printf("should switch to workspace %s\n", $2);
workspace_show($2);
free($2);
+
+ tree_render();
}
;
Con *con = tree_open_con(NULL);
con_focus(con);
asprintf(&json_output, "{\"success\":true, \"id\":%ld}", (long int)con);
+
+ tree_render();
}
;
printf("matching: %p / %s\n", current->con, current->con->name);
con_toggle_fullscreen(current->con);
}
+
+ tree_render();
}
;
/* TODO: use matches */
printf("should select next window in direction %c\n", $2);
tree_next('n', ($2 == 'v' ? VERT : HORIZ));
+
+ tree_render();
}
;
/* TODO: use matches */
printf("should select prev window in direction %c\n", $2);
tree_next('p', ($2 == 'v' ? VERT : HORIZ));
+
+ tree_render();
}
;
/* TODO: use matches */
printf("splitting in direction %c\n", $2);
tree_split(focused, ($2 == 'v' ? VERT : HORIZ));
+
+ tree_render();
}
;
}
}
}
+
+ tree_render();
}
;
printf("matching: %p / %s\n", current->con, current->con->name);
current->con->border_style = $2;
}
+
+ tree_render();
}
;
if ($2 == 'u')
level_up();
else level_down();
+
+ tree_render();
}
;
{
printf("moving in direction %d\n", $2);
tree_move($2);
+
+ tree_render();
}
| TOK_MOVE TOK_WORKSPACE STR
{
printf("matching: %p / %s\n", current->con, current->con->name);
con_move_to_workspace(current->con, ws);
}
+
+ tree_render();
}
;
printf("restoring \"%s\"\n", $2);
tree_append_json($2);
free($2);
+ tree_render();
}
;
con_set_layout(current->con, $2);
}
}
+
+ tree_render();
}
;
}
free($<string>2);
+
+ tree_render();
}
;
LOG("focused->percent after = %f\n", focused->percent);
LOG("other->percent after = %f\n", other->percent);
}
+
+ tree_render();
}
;
strncpy(command, (const char*)message, message_size);
LOG("IPC: received: *%s*\n", command);
const char *reply = parse_cmd((const char*)command);
- tree_render();
free(command);
/* If no reply was provided, we just use the default success message */