]> git.sur5r.net Git - i3/i3/commitdiff
Add support for get_marks in i3-msg
authorHelgi Kristvin Sigurbjarnarson <helgikrs@gmail.com>
Sun, 7 Aug 2011 17:03:10 +0000 (17:03 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 9 Aug 2011 06:19:11 +0000 (08:19 +0200)
i3-msg/main.c

index 630a345d63c6ce57dc611b19464d8a5b6da0f8cf..d8195e08c8df3ff7629148b9d97bad68e2e03886 100644 (file)
@@ -180,9 +180,11 @@ int main(int argc, char *argv[]) {
                 message_type = I3_IPC_MESSAGE_TYPE_GET_OUTPUTS;
             else if (strcasecmp(optarg, "get_tree") == 0)
                 message_type = I3_IPC_MESSAGE_TYPE_GET_TREE;
+            else if (strcasecmp(optarg, "get_marks") == 0)
+                message_type = I3_IPC_MESSAGE_TYPE_GET_MARKS;
             else {
                 printf("Unknown message type\n");
-                printf("Known types: command, get_workspaces, get_outputs, get_tree\n");
+                printf("Known types: command, get_workspaces, get_outputs, get_tree, get_marks\n");
                 exit(EXIT_FAILURE);
             }
         } else if (o == 'q') {