From 1d5eee0e60e71d64ba1ac284ff46370fc36f3963 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 16 May 2020 19:07:28 +0200 Subject: [PATCH] focus validator: be less strict when changing tabs Closes T8722 --- src/bin/win.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/win.c b/src/bin/win.c index 29cd1a9d..4f66c713 100644 --- a/src/bin/win.c +++ b/src/bin/win.c @@ -272,6 +272,12 @@ _focus_validator(void) { assert (tc_parent->is_focused); tc_parent = tc_parent->parent; + if (tc_parent->type == TERM_CONTAINER_TYPE_TABS) + { + Tabs *tabs = (Tabs*) tc_parent; + if (tabs->selector_bg) + return; + } } while (tc_parent->type != TERM_CONTAINER_TYPE_WIN); assert (tc_parent->is_focused);