]> git.sur5r.net Git - i3/i3/commitdiff
Use tree-command for workspace-switching
authorAxel Wagner <mail@merovius.de>
Fri, 14 Jan 2011 18:16:52 +0000 (19:16 +0100)
committerAxel Wagner <mail@merovius.de>
Fri, 14 Jan 2011 18:16:52 +0000 (19:16 +0100)
i3bar/src/xcb.c

index 0cb1201ab03ecd005c5f948eff32bcdba84a9591..a6d667bcc9c4d376cfeb68853602ea8b995431d7 100644 (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);
 }