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 | fixed focus key handler (diff) | |
download | sway-c5a69828934bf07db9062bd5f24bb2ff94b45b4a.tar.gz sway-c5a69828934bf07db9062bd5f24bb2ff94b45b4a.tar.zst sway-c5a69828934bf07db9062bd5f24bb2ff94b45b4a.zip |
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) { | |||
146 | // update container focus from here to root, making necessary changes along | 146 | // update container focus from here to root, making necessary changes along |
147 | // the way | 147 | // the way |
148 | swayc_t *p = c; | 148 | swayc_t *p = c; |
149 | if (p->type != C_OUTPUT && p->type != C_ROOT) { | ||
150 | p->is_focused = true; | ||
151 | } | ||
149 | while (p != &root_container) { | 152 | while (p != &root_container) { |
150 | update_focus(p); | 153 | update_focus(p); |
151 | p = p->parent; | 154 | p = p->parent; |