Merge pull request #17 from DarNCelsius/patch-2

Added support for additional window managers
This commit is contained in:
Linus Dierheimer
2021-04-24 11:58:04 +02:00
committed by GitHub
+12
View File
@@ -44,6 +44,18 @@ const FFWMResult* ffCalculateWM(FFinstance* instance)
if(ffStrbufIgnCaseCompS(&result.processName, "kwin_wayland") == 0 || ffStrbufIgnCaseCompS(&result.processName, "kwin_x11") == 0)
ffStrbufSetS(&result.prettyName, "KWin");
if(ffStrbufIgnCaseCompS(&result.processName, "openbox") == 0)
ffStrbufSetS(&result.prettyName, "Openbox");
if(ffStrbufIgnCaseCompS(&result.processName, "cinnamon") == 0)
ffStrbufSetS(&result.prettyName, "Muffin");
if(ffStrbufIgnCaseCompS(&result.processName, "xfwm4") == 0)
ffStrbufSetS(&result.prettyName, "XFCE Window Manager");
if(ffStrbufIgnCaseCompS(&result.processName, "wayfire") == 0)
ffStrbufSetS(&result.prettyName, "Wayfire");
if(result.prettyName.length > 0)
break;