Skip to content

Commit

Permalink
WM (OpenBSD): fix process enumeration
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Dec 13, 2024
1 parent bfaa73a commit 87446e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detection/displayserver/linux/wmde.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ static const char* getFromProcesses(FFDisplayServerResult* result)
for (int i = 0; i < count; ++i)
{
if(result->dePrettyName.length == 0)
applyPrettyNameIfDE(result, proc->p_comm);
applyPrettyNameIfDE(result, proc[i].p_comm);

if(result->wmPrettyName.length == 0)
applyNameIfWM(result, proc->p_comm);
applyNameIfWM(result, proc[i].p_comm);

if(result->dePrettyName.length > 0 && result->wmPrettyName.length > 0)
break;
Expand Down

0 comments on commit 87446e6

Please sign in to comment.