Make 'c' key work with threads as well.

This commit is contained in:
Hisham Muhammad
2017-09-14 17:10:39 -03:00
parent b9934ffa08
commit e3f65c8ec2
4 changed files with 6 additions and 2 deletions

View File

@ -142,7 +142,7 @@ static void tagAllChildren(Panel* panel, Process* parent) {
pid_t ppid = parent->pid;
for (int i = 0; i < Panel_size(panel); i++) {
Process* p = (Process*) Panel_get(panel, i);
if (!p->tag && p->ppid == ppid) {
if (!p->tag && Process_isChildOf(p, ppid)) {
tagAllChildren(panel, p);
}
}