From: Michael Stapelberg Date: Sun, 7 Aug 2011 13:24:51 +0000 (+0200) Subject: little style fixes X-Git-Tag: 4.0.2~52^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=692d65b0fd7ab8c8618de09a8f8f5fba031bd4b0;p=i3%2Fi3 little style fixes --- diff --git a/src/tree.c b/src/tree.c index fb6d6cc7..c76a47ee 100644 --- a/src/tree.c +++ b/src/tree.c @@ -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 */ - Con* workspace = 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) {