Use tree-command for workspace-switching

This commit is contained in:
Axel Wagner 2011-01-14 19:16:52 +01:00
parent 4762152e1c
commit 1369e36d7c
1 changed files with 2 additions and 2 deletions

View File

@ -353,8 +353,8 @@ void handle_button(xcb_button_press_event_t *event) {
break;
}
char buffer[50];
snprintf(buffer, 50, "%d", cur_ws->num);
char buffer[strlen(cur_ws->name) + 11];
snprintf(buffer, 50, "workspace %s", cur_ws->name);
i3_send_msg(I3_IPC_MESSAGE_TYPE_COMMAND, buffer);
}