diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-19 01:06:15 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-19 01:06:15 -0700 |
commit | c5a69828934bf07db9062bd5f24bb2ff94b45b4a (patch) | |
tree | 5d580fed19fa2aa25014fe234edc6db14cfaa652 /sway/focus.c | |
parent | e16a4015ff216594eeb237ef81534bfaea7533d6 (diff) |
fixed some more bugs, moved layout_log into log.ch, restored focus_parent
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/focus.c b/sway/focus.c index 0ee10694..7023d37d 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -146,6 +146,9 @@ void set_focused_container(swayc_t *c) { // update container focus from here to root, making necessary changes along // the way swayc_t *p = c; + if (p->type != C_OUTPUT && p->type != C_ROOT) { + p->is_focused = true; + } while (p != &root_container) { update_focus(p); p = p->parent; |