]> git.sur5r.net Git - i3/i3/commitdiff
little style fixes
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 7 Aug 2011 13:24:51 +0000 (15:24 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 7 Aug 2011 13:24:51 +0000 (15:24 +0200)
src/tree.c

index fb6d6cc7ee5b44c5149f6e5799f8ec0639ac961c..c76a47eeee23fb0c98893c5697a2187bcc5ef6fd 100644 (file)
@@ -405,19 +405,18 @@ static bool _tree_next(Con *con, char way, orientation_t orientation, bool wrap)
         DLOG("Next output is %s\n", next_output->name);
 
         /* Find visible workspace on next output */
-        Conworkspace = NULL;
+        Con *workspace = NULL;
         GREP_FIRST(workspace, output_get_content(next_output->con), workspace_is_visible(child));
 
         /* Show next workspace and focus appropriate container if possible. */
-        if (workspace) {
-            workspace_show(workspace->name);
-            Con* focus = con_descend_direction(workspace, direction);
-            if (focus)
-                con_focus(focus);
-            return true;
-        }
+        if (!workspace)
+            return false;
 
-        return false;
+        workspace_show(workspace->name);
+        Con *focus = con_descend_direction(workspace, direction);
+        if (focus)
+            con_focus(focus);
+        return true;
     }
 
     if (con->type == CT_FLOATING_CON) {