mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
opt: avoid unnecessary command execution
This commit is contained in:
parent
1de3455733
commit
51807e3c1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue