mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
container not in scratchpad: return CMD_FAILURE
Closes #8696. This was changed to CMD_INVALID in #8615, but for a scenario where there are criteria matched containers both inside and outside scratchpad, the container in scratchpad can no longer be shown via "[<criteria>] scratchpad show". Changing it to CMD_FAILURE still leads to an error message and exit code 2, but scratchpad show works again.
This commit is contained in:
parent
f9945d81fb
commit
7ea8641155
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ struct cmd_results *cmd_scratchpad(int argc, char **argv) {
|
||||||
// we'll return an error. The same is true if the
|
// we'll return an error. The same is true if the
|
||||||
// overridden node is not a container.
|
// overridden node is not a container.
|
||||||
if (!con || !con->scratchpad) {
|
if (!con || !con->scratchpad) {
|
||||||
return cmd_results_new(CMD_INVALID, "Container is not in scratchpad.");
|
return cmd_results_new(CMD_FAILURE, "Container is not in scratchpad.");
|
||||||
}
|
}
|
||||||
scratchpad_toggle_container(con);
|
scratchpad_toggle_container(con);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue