opt: avoid unnecessary command execution

This commit is contained in:
DreamMaoMao 2025-05-16 15:40:27 +08:00
parent 1de3455733
commit 51807e3c1b

View file

@ -1614,7 +1614,7 @@ void toggle_named_scratchpad(const Arg *arg) {
target_client = get_client_by_id_or_title(arg_id, arg_title);
if (!target_client) {
if (!target_client && arg->v3) {
Arg arg_spawn = {.v = arg->v3};
spawn(&arg_spawn);
return;