WM (OpenBSD): fix process enumeration

This commit is contained in:
Carter Li
2024-12-14 00:18:41 +08:00
parent bfaa73a2c7
commit 87446e6eef
+2 -2
View File
@@ -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;