From: Orestis Floros Date: Sat, 9 Dec 2017 14:25:30 +0000 (+0200) Subject: Remove useless check in _tree_next X-Git-Tag: 4.15~30^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ced77384bfa2b56b6d3c0d3ded01a7bfc2d8806;p=i3%2Fi3 Remove useless check in _tree_next con_descend_focused on an empty workspace should return the workspace. --- diff --git a/src/tree.c b/src/tree.c index 710bb655..f87c4326 100644 --- a/src/tree.c +++ b/src/tree.c @@ -565,10 +565,8 @@ static bool _tree_next(Con *con, char way, orientation_t orientation, bool wrap) focus = con_descend_focused(workspace); } - if (focus) { - con_focus(focus); - x_set_warp_to(&(focus->rect)); - } + con_focus(focus); + x_set_warp_to(&(focus->rect)); return true; }