Tiling2: Be more defensive about removing clients.

This will delete clients even in cases we didn't delete before.
This commit is contained in:
Tom Hacohen 2014-01-20 10:46:52 +00:00
parent 507a6db1e1
commit 41ecdc1ebd
1 changed files with 8 additions and 7 deletions

View File

@ -464,16 +464,17 @@ _remove_client(E_Client *ec)
if (!ec)
return;
if (!is_tilable(ec))
return;
DBG("removing %p", ec);
Client_Extra *extra = eina_hash_find(_G.client_extras, &ec);
if (!extra) {
ERR("No extra for %p", ec);
return;
}
if (!extra)
{
if (is_tilable(ec))
{
ERR("No extra for %p", ec);
}
return;
}
extra->tiled = EINA_FALSE;