From 3c4196b986f2781e6a72a8e230b653b73c67159b Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 29 Aug 2018 14:38:51 +1000 Subject: Fix rendering of nested tabs The C_CONTAINER check needs to apply to C_VIEW as well. --- sway/desktop/transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/desktop/transaction.c') diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c index 862ffee8..fdf24bd3 100644 --- a/sway/desktop/transaction.c +++ b/sway/desktop/transaction.c @@ -126,7 +126,7 @@ static void copy_pending_state(struct sway_container *container, // Set focused_inactive_child to the direct tiling child struct sway_container *focus = seat_get_focus_inactive_tiling(seat, container); - if (focus && focus->type == C_CONTAINER) { + if (focus && focus->type > C_WORKSPACE) { while (focus->parent->type != C_WORKSPACE) { focus = focus->parent; } -- cgit v1.2.3-54-g00ecf