summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/border.c4
-rw-r--r--sway/commands.c4
2 files changed, 5 insertions, 3 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
281 update_tabbed_stacked_titlebars(child, cr, g, focused, focused_inactive); 281 update_tabbed_stacked_titlebars(child, cr, g, focused, focused_inactive);
282 } 282 }
283 } else { 283 } else {
284 if (focused == c) { 284 bool is_child_of_focused = swayc_is_child_of(c, get_focused_container(&root_container));
285
286 if (focused == c || is_child_of_focused) {
285 render_title_bar(c, cr, g, &config->border_colors.focused); 287 render_title_bar(c, cr, g, &config->border_colors.focused);
286 } else if (focused_inactive == c) { 288 } else if (focused_inactive == c) {
287 render_title_bar(c, cr, g, &config->border_colors.focused_inactive); 289 render_title_bar(c, cr, g, &config->border_colors.focused_inactive);
diff --git a/sway/commands.c b/sway/commands.c
index 56701634..d572afa0 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -1927,8 +1927,8 @@ static struct cmd_results *cmd_kill(int argc, char **argv) {
1927 if (config->reading) return cmd_results_new(CMD_FAILURE, "kill", "Can't be used in config file."); 1927 if (config->reading) return cmd_results_new(CMD_FAILURE, "kill", "Can't be used in config file.");
1928 if (!config->active) return cmd_results_new(CMD_FAILURE, "kill", "Can only be used when sway is running."); 1928 if (!config->active) return cmd_results_new(CMD_FAILURE, "kill", "Can only be used when sway is running.");
1929 1929
1930 swayc_t *view = get_focused_container(&root_container); 1930 swayc_t *container = get_focused_container(&root_container);
1931 wlc_view_close(view->handle); 1931 close_views(container);
1932 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 1932 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
1933} 1933}
1934 1934