diff --git a/src/common/detectWMDE.c b/src/common/detectWMDE.c index 54c9a6965..0fa100659 100644 --- a/src/common/detectWMDE.c +++ b/src/common/detectWMDE.c @@ -246,6 +246,9 @@ static inline void getDE(FFWMDEResult* result, ProcData* procData) { ffStrbufSetS(&result->deProcessName, result->sessionDesktop); ffStrbufSet(&result->dePrettyName, &result->deProcessName); + + if(ffStrbufStartsWithIgnCaseS(&result->dePrettyName, "X-")) + ffStrbufSubstrAfter(&result->deProcessName, 2); } }