Fix keyboard tracking when leaving an xdg shell window

_parent_client_contains_pointer() shouldn't return true if there is no
parent client.  This could result in leaving stale resources in the
keyboard focus list and crash the compositor.
This commit is contained in:
Derek Foreman 2016-11-30 14:40:11 -06:00 committed by Mike Blumenkrantz
parent a61f64f150
commit e2eec45e3b
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ _parent_client_contains_pointer(E_Client *ec)
while (top->parent) top = top->parent;
if (top == ec) return EINA_FALSE;
if (top->mouse.in) return EINA_TRUE;
EINA_LIST_FOREACH(top->comp_data->sub.list, l, c)