mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Resolve node paths relative to the given reference
This commit is contained in:
parent
cfc69985ea
commit
3a27fb66ca
1 changed files with 3 additions and 1 deletions
4
query.c
4
query.c
|
@ -430,7 +430,9 @@ int node_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
|||
return ret;
|
||||
}
|
||||
}
|
||||
dst->node = (*desc == '/' ? dst->desktop->root : dst->desktop->focus);
|
||||
if (*desc == '/') {
|
||||
dst->node = dst->desktop->root;
|
||||
}
|
||||
char *move = strtok(desc, PTH_TOK);
|
||||
while (move != NULL && dst->node != NULL) {
|
||||
if (streq("first", move) || streq("1", move)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue