only find the session recovery remember if ec->remember is not it

ref T4512
This commit is contained in:
Mike Blumenkrantz 2016-10-20 12:13:22 -04:00
parent 41f5a3e1fd
commit 8e61889336
1 changed files with 10 additions and 4 deletions

View File

@ -867,11 +867,17 @@ _e_remember_find(E_Client *ec, int check_usable)
if ((check_usable) && (!e_remember_usable_get(rem)))
continue;
if (!eina_streq(rem->uuid, ec->uuid)) continue;
if (rem->uuid)
if (ec->uuid)
{
if (rem->pid != ec->netwm.pid) continue;
return rem;
if ((!ec->remember) || (!(ec->remember->apply & E_REMEMBER_APPLY_UUID)))
{
if (!eina_streq(rem->uuid, ec->uuid)) continue;
if (rem->uuid)
{
if (rem->pid != ec->netwm.pid) continue;
return rem;
}
}
}
if (ec->netwm.name) title = ec->netwm.name;