diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-07-28 07:26:13 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-07-28 07:26:13 -0400 |
| commit | 1948982fe86ec5bbdd6b3b779b6080ba87a4f730 (patch) | |
| tree | 279a7474efce0709d28d07a916f6c494bd39221f | |
| parent | e3787f543b3beeefaa1f06bf019128b86fdda381 (diff) | |
| parent | 0ce1275466a38032cdd82d8f59fba1f78a8dc2a4 (diff) | |
Merge pull request #792 from acrisci/feature/render-focused-stack-children-focused
Render focused stack/tab children focused
| -rw-r--r-- | sway/border.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/border.c b/sway/border.c index 55628972..d17d8d0c 100644 --- a/sway/border.c +++ b/sway/border.c @@ -281,7 +281,9 @@ void update_tabbed_stacked_titlebars(swayc_t *c, cairo_t *cr, struct wlc_geometr update_tabbed_stacked_titlebars(child, cr, g, focused, focused_inactive); } } else { - if (focused == c) { + bool is_child_of_focused = swayc_is_child_of(c, get_focused_container(&root_container)); + + if (focused == c || is_child_of_focused) { render_title_bar(c, cr, g, &config->border_colors.focused); } else if (focused_inactive == c) { render_title_bar(c, cr, g, &config->border_colors.focused_inactive); |
