fixed some more bugs, moved layout_log into log.ch, restored focus_parent

This commit is contained in:
taiyu 2015-08-19 01:06:15 -07:00
parent e16a4015ff
commit c5a6982893
7 changed files with 70 additions and 63 deletions

View file

@ -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;