]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t append the --restart parameter on each restart (Thanks aniou)
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 12 May 2011 04:58:09 +0000 (06:58 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 12 May 2011 04:58:09 +0000 (06:58 +0200)
Fixes: #384
src/util.c

index d9de98e84ce9b430b9d768df671b8c00a2fd1028..f95ccaf36a23b2d003ef3ba3a89373c1ad073f0a 100644 (file)
@@ -379,7 +379,8 @@ void i3_restart(bool forget_layout) {
         for (int i = 0; i < num_args; ++i) {
             if (skip_next)
                 skip_next = false;
-            else if (!strcmp(start_argv[i], "-r"))
+            else if (!strcmp(start_argv[i], "-r") ||
+                     !strcmp(start_argv[i], "--restart"))
                 skip_next = true;
             else
                 new_argv[write_index++] = start_argv[i];