little style fixes

This commit is contained in:
Michael Stapelberg 2011-08-07 15:24:51 +02:00
parent a547365a88
commit 692d65b0fd
1 changed files with 8 additions and 9 deletions

View 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); DLOG("Next output is %s\n", next_output->name);
/* Find visible workspace on next output */ /* 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)); GREP_FIRST(workspace, output_get_content(next_output->con), workspace_is_visible(child));
/* Show next workspace and focus appropriate container if possible. */ /* Show next workspace and focus appropriate container if possible. */
if (workspace) { if (!workspace)
workspace_show(workspace->name); return false;
Con* focus = con_descend_direction(workspace, direction);
if (focus)
con_focus(focus);
return true;
}
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) { if (con->type == CT_FLOATING_CON) {