Added support for additional window managers

Added support for Openbox, Cinnamon, XFCE and Wayfire window managers.
This commit is contained in:
DarN
2021-04-24 10:25:39 +02:00
committed by GitHub
parent c697f8ee80
commit adce9fc53d
+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, "Mutter");
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;