fix infinite stacking loop when enforcing nocomp

This commit is contained in:
Mike Blumenkrantz 2014-08-15 19:17:33 -04:00
parent b6032b1fbd
commit 45906bdf20
1 changed files with 3 additions and 1 deletions

View File

@ -475,7 +475,9 @@ nocomp:
{
if (c->nocomp && c->nocomp_ec)
{
E_CLIENT_REVERSE_FOREACH(c, ec)
E_Client *nec = NULL;
for (ec = e_client_top_get(c), nec = e_client_below_get(ec);
(ec && nec) && (ec != nec); ec = nec, nec = e_client_below_get(ec))
{
if (ec == c->nocomp_ec) break;
if (e_client_is_stacking(ec)) continue;