From: Michael Stapelberg Date: Thu, 12 May 2011 04:58:09 +0000 (+0200) Subject: Bugfix: Don’t append the --restart parameter on each restart (Thanks aniou) X-Git-Tag: tree-pr3~40 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e75d934a4c16f8741956285063ea8a46b7728fb;p=i3%2Fi3 Bugfix: Don’t append the --restart parameter on each restart (Thanks aniou) Fixes: #384 --- diff --git a/src/util.c b/src/util.c index d9de98e8..f95ccaf3 100644 --- a/src/util.c +++ b/src/util.c @@ -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];