From 686780f12d40c788a29bfe552c892a802e805dca Mon Sep 17 00:00:00 2001
From: taiyu <taiyu.len@gmail.com>
Date: Wed, 19 Aug 2015 20:29:24 -0700
Subject: another small fix to move_focus

---
 sway/focus.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'sway')

diff --git a/sway/focus.c b/sway/focus.c
index 48017fdf..a6ffe73f 100644
--- a/sway/focus.c
+++ b/sway/focus.c
@@ -57,7 +57,11 @@ bool move_focus(enum movement_direction direction) {
 	swayc_t *view = get_swayc_in_direction(
 			get_focused_container(&root_container), direction);
 	if (view) {
-		set_focused_container(get_focused_view(view));
+		if (direction == MOVE_PARENT) {
+			set_focused_container(view);
+		} else {
+			set_focused_container(get_focused_view(view));
+		}
 		return true;
 	}
 	return false;
-- 
cgit v1.2.3