]> git.lizzy.rs Git - bspwm.git/commitdiff
Activate the relevant node
authorBastien Dejean <nihilhill@gmail.com>
Mon, 26 Feb 2018 19:25:31 +0000 (20:25 +0100)
committerBastien Dejean <nihilhill@gmail.com>
Mon, 26 Feb 2018 19:25:31 +0000 (20:25 +0100)
src/messages.c

index 70d3be45575ab6e0616c61fb4dc69008a676f06b..dd5228923c0fe4a708b5deb7aa6876b280621883 100644 (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;
                        }