From 2e75d934a4c16f8741956285063ea8a46b7728fb Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 12 May 2011 06:58:09 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20append=20the=20--resta?= =?utf8?q?rt=20parameter=20on=20each=20restart=20(Thanks=20aniou)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: #384 --- src/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- 2.39.5