- `list_monitors [--quiet]` — Perform a dump of each monitor.
+- `list_history [DESKTOP_NAME]` — Return the node focus history.
+
- `list_windows` — Return the list of managed windows (i.e. their identifiers).
- `list_rules` — Return the list of rules.
list_windows(rsp);
return;
} else if (strcmp(cmd, "list_history") == 0) {
- list_history(mon->desk, rsp);
+ char *name = strtok(NULL, TOK_SEP);
+ if (name != NULL) {
+ desktop_location_t loc;
+ if (locate_desktop(name, &loc))
+ list_history(loc.desktop, rsp);
+ } else {
+ list_history(mon->desk, rsp);
+ }
+ return;
} else if (strcmp(cmd, "list_rules") == 0) {
list_rules(rsp);
return;
if (a != NULL) {
while (c != NULL && (c->node == a->node || c->node == n)) {
node_list_t *d = c->next;
+ if (f->tail == c)
+ f->tail = (d == NULL ? b : d);
free(c);
c = d;
}