avoid infinitely looping when applying x11 window grouping

#ThatTimeKainXFoundABug
This commit is contained in:
Mike Blumenkrantz 2016-05-11 18:29:38 -04:00
parent 93a2233f28
commit 30f3a75366
1 changed files with 3 additions and 4 deletions

View File

@ -4314,9 +4314,9 @@ _e_comp_x_hook_client_fetch(void *d EINA_UNUSED, E_Client *ec)
ecl = ec->leader;
if (!ecl)
{
E_Client *child = e_client_bottom_get();
E_Client *child;
do
E_CLIENT_FOREACH(child)
{
if (child == ec) continue;
if (e_object_is_del(E_OBJECT(child))) continue;
@ -4327,8 +4327,7 @@ _e_comp_x_hook_client_fetch(void *d EINA_UNUSED, E_Client *ec)
ecl = child;
break;
}
child = e_client_above_get(child);
} while (child);
}
}
if (ecl)
{