From: Axel Wagner Date: Fri, 14 Jan 2011 18:16:52 +0000 (+0100) Subject: Use tree-command for workspace-switching X-Git-Tag: 4.0.1~7^2~3^2~40 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1369e36d7c5238e56a14c393f654088b8f9293b9;p=i3%2Fi3 Use tree-command for workspace-switching --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 0cb1201a..a6d667bc 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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); }