From 9ced77384bfa2b56b6d3c0d3ded01a7bfc2d8806 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Sat, 9 Dec 2017 16:25:30 +0200 Subject: [PATCH] Remove useless check in _tree_next con_descend_focused on an empty workspace should return the workspace. --- src/tree.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.39.5