Activate the relevant node

This commit is contained in:
Bastien Dejean 2018-02-26 20:25:31 +01:00
parent 0d0fb94fd1
commit 181e67978e

View file

@ -644,7 +644,9 @@ void cmd_desktop(char **args, int num, FILE *rsp)
break;
}
}
if (!activate_desktop(dst.monitor, dst.desktop)) {
if (activate_desktop(dst.monitor, dst.desktop)) {
activate_node(dst.monitor, dst.desktop, NULL);
} else {
fail(rsp, "");
break;
}