Bugfix: Don’t append the --restart parameter on each restart (Thanks aniou)
Fixes: #384
This commit is contained in:
parent
c62f70856f
commit
2e75d934a4
|
@ -379,7 +379,8 @@ void i3_restart(bool forget_layout) {
|
||||||
for (int i = 0; i < num_args; ++i) {
|
for (int i = 0; i < num_args; ++i) {
|
||||||
if (skip_next)
|
if (skip_next)
|
||||||
skip_next = false;
|
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;
|
skip_next = true;
|
||||||
else
|
else
|
||||||
new_argv[write_index++] = start_argv[i];
|
new_argv[write_index++] = start_argv[i];
|
||||||
|
|
Loading…
Reference in New Issue