focus - ensure focus is properly handled first time for unfocused wins

this fixes a case where ecore imf is never told about a newly focused
context because the relative term is already the child in an initial
case... this gets input methods working again

@fix
This commit is contained in:
Carsten Haitzler 2019-04-15 17:19:33 +01:00
parent 6a13cb2e20
commit bbe5b3eb03
1 changed files with 1 additions and 1 deletions

View File

@ -994,7 +994,7 @@ _win_focus(Term_Container *tc, Term_Container *relative)
wn = (Win*) tc;
DBG("tc:%p tc->is_focused:%d from_child:%d",
tc, tc->is_focused, wn->child == relative);
if (relative != wn->child)
if ((relative != wn->child) || (!wn->focused))
{
DBG("focus tc:%p", tc);
wn->child->focus(wn->child, tc);