Remove useless check in _tree_next

con_descend_focused on an empty workspace should return the workspace.
This commit is contained in:
Orestis Floros 2017-12-09 16:25:30 +02:00
parent 87ed8df4fa
commit 9ced77384b
1 changed files with 2 additions and 4 deletions

View File

@ -565,10 +565,8 @@ static bool _tree_next(Con *con, char way, orientation_t orientation, bool wrap)
focus = con_descend_focused(workspace); focus = con_descend_focused(workspace);
} }
if (focus) { con_focus(focus);
con_focus(focus); x_set_warp_to(&(focus->rect));
x_set_warp_to(&(focus->rect));
}
return true; return true;
} }