diff options
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; |