opt: spawn_on_empty and toggle_named_scratchapd use spawn_shell
This commit is contained in:
@@ -805,7 +805,7 @@ int spawn_on_empty(const Arg *arg) {
|
||||
return 0;
|
||||
} else {
|
||||
view(arg, true);
|
||||
spawn(arg);
|
||||
spawn_shell(arg);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1088,7 +1088,7 @@ int toggle_named_scratchpad(const Arg *arg) {
|
||||
|
||||
if (!target_client && arg->v3) {
|
||||
Arg arg_spawn = {.v = arg->v3};
|
||||
spawn(&arg_spawn);
|
||||
spawn_shell(&arg_spawn);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user