]> git.sur5r.net Git - i3/i3/blobdiff - src/cmdparse.y
Bugfix: Switch to appropriate workspace when using 'focus' (+test) (Thanks rogutes)
[i3/i3] / src / cmdparse.y
index 0b80b6b333748ca0425c4041644f3675779f1d52..a8e190e789664d82f3249c1f5eabd73cb40c96d9 100644 (file)
@@ -412,6 +412,8 @@ focus:
 
         int count = 0;
         TAILQ_FOREACH(current, &owindows, owindows) {
+            Con *ws = con_get_workspace(current->con);
+            workspace_show(ws->name);
             LOG("focusing %p / %s\n", current->con, current->con->name);
             con_focus(current->con);
             count++;