]> git.sur5r.net Git - i3/i3/commitdiff
ipc: return logical workspace numbers, not internal ones
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Mar 2010 14:59:38 +0000 (15:59 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Mar 2010 14:59:38 +0000 (15:59 +0100)
src/ipc.c

index 8bae4f07c330762778e1cd839e08fa28c6508c90..0d1d5b5cc4de34c13120454ad0999d5af62586ea 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -116,7 +116,7 @@ static void ipc_send_workspaces(int fd) {
 
                 y(map_open);
                 ystr("num");
-                y(integer, ws->num);
+                y(integer, ws->num + 1);
 
                 ystr("name");
                 ystr(ws->utf8_name);