mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 18:01:37 -05:00
Catch more invalid paths in node_from_desc
For example, `query -N -n @/parent` will now fail.
This commit is contained in:
parent
4d04c0211e
commit
cfc69985ea
1 changed files with 2 additions and 0 deletions
2
query.c
2
query.c
|
@ -459,6 +459,8 @@ int node_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
|||
} else {
|
||||
return SELECTOR_INVALID;
|
||||
}
|
||||
} else if (dst->desktop->root != NULL) {
|
||||
return SELECTOR_INVALID;
|
||||
}
|
||||
return SELECTOR_OK;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue