opt: spawn_on_empty and toggle_named_scratchapd use spawn_shell

This commit is contained in:
DreamMaoMao
2025-11-13 10:49:44 +08:00
parent e09748764d
commit 0501719604

View File

@@ -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;
}