Bugfix: Don’t append the --restart parameter on each restart (Thanks aniou)

Fixes: #384
next
Michael Stapelberg 2011-05-12 06:58:09 +02:00
parent c62f70856f
commit 2e75d934a4
1 changed files with 2 additions and 1 deletions

View 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];