]> git.lizzy.rs Git - bspwm.git/blobdiff - query.c
Start with the focused node in @DESKTOP_SEL:
[bspwm.git] / query.c
diff --git a/query.c b/query.c
index d17473d5108b502f0f4fba6f64f31d8a2755ca50..b9f80632aafd7c21654f6ca35a0e817a7ca40c3b 100644 (file)
--- a/query.c
+++ b/query.c
@@ -424,6 +424,7 @@ int node_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
                        *colon = '\0';
                        int ret;
                        if ((ret = desktop_from_desc(desc, ref, dst)) == SELECTOR_OK) {
+                               dst->node = dst->desktop->focus;
                                desc = colon + 1;
                        } else {
                                free(desc_copy);