sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit badfcf7c761c4bed5b60437d3dfd5eb5c5b0ce4c
parent 6d2b455727f7e3df1fc7241a39694bd843a92ed1
Author: Tony Crisci <tony@dubstepdish.com>
Date:   Wed, 27 Jul 2016 23:16:58 -0400

Render focused stack/tab children focused

Whenever a stacked or tabbed container has focused, paint the titlebars of all
its child windows to be focused as well to indicate the parent stack/tab
container has the focus.

Diffstat:
Msway/border.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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);