aboutsummaryrefslogtreecommitdiff
path: root/sway/focus.c
diff options
context:
space:
mode:
authortaiyu <taiyu.len@gmail.com>2015-08-19 20:28:05 -0700
committertaiyu <taiyu.len@gmail.com>2015-08-19 20:28:05 -0700
commit66e82a68fc9d3264413a9d7b54813143ada61d20 (patch)
tree63b522dff34f4725be0d0a292db133105b0b11eb /sway/focus.c
parent5ff0619ca1cab044004df044c253c9170b8316c3 (diff)
small fix
Diffstat (limited to 'sway/focus.c')
-rw-r--r--sway/focus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c
index 1dbac003..48017fdf 100644
--- a/sway/focus.c
+++ b/sway/focus.c
@@ -57,7 +57,7 @@ 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(view);
+ set_focused_container(get_focused_view(view));
return true;
}
return false;