worked on a issue where d->current is NULL, because both current and previous focus get killed simultaneously