From ada13539bf87394976cb771462fa86244fff820f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 11 May 2016 18:29:38 -0400 Subject: [PATCH] avoid infinitely looping when applying x11 window grouping #ThatTimeKainXFoundABug --- src/bin/e_comp_x.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c index f7a8a1d8a..ff80e0294 100644 --- a/src/bin/e_comp_x.c +++ b/src/bin/e_comp_x.c @@ -4394,9 +4394,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; @@ -4407,8 +4407,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) {