From 373e288d035426e86ec3b60f6a893d7e8c90d424 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 14 Dec 2024 00:05:02 +0800 Subject: [PATCH] WM: add support for fvwm (OpenBSD) and ctwm (NetBSD) --- src/detection/displayserver/displayserver.h | 2 ++ src/detection/displayserver/linux/wmde.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/detection/displayserver/displayserver.h b/src/detection/displayserver/displayserver.h index dd4fd9651..44f23fa68 100644 --- a/src/detection/displayserver/displayserver.h +++ b/src/detection/displayserver/displayserver.h @@ -36,6 +36,8 @@ #define FF_WM_PRETTY_ICEWM "IceWM" #define FF_WM_PRETTY_SPECTRWM "spectrwm" #define FF_WM_PRETTY_DTWM "dtwm" +#define FF_WM_PRETTY_FVWM "fvwm" +#define FF_WM_PRETTY_CTWM "ctwm" #define FF_WM_PROTOCOL_TTY "TTY" diff --git a/src/detection/displayserver/linux/wmde.c b/src/detection/displayserver/linux/wmde.c index 7a8554caa..c5a22f3ba 100644 --- a/src/detection/displayserver/linux/wmde.c +++ b/src/detection/displayserver/linux/wmde.c @@ -126,6 +126,10 @@ static void applyPrettyNameIfWM(FFDisplayServerResult* result, const char* name) ffStrbufSetS(&result->wmPrettyName, FF_WM_PRETTY_ICEWM); else if(ffStrEqualsIgnCase(name, "dtwm")) ffStrbufSetS(&result->wmPrettyName, FF_WM_PRETTY_DTWM); + else if(ffStrEqualsIgnCase(name, "fvwm")) + ffStrbufSetS(&result->wmPrettyName, FF_WM_PRETTY_FVWM); + else if(ffStrEqualsIgnCase(name, "ctwm")) + ffStrbufSetS(&result->wmPrettyName, FF_WM_PRETTY_CTWM); else if(ffStrEqualsIgnCase(name, "hyprland")) ffStrbufSetS(&result->wmPrettyName, FF_WM_PRETTY_HYPRLAND); }