Skip to content

Commit

Permalink
WM: add support for fvwm (OpenBSD) and ctwm (NetBSD)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Dec 13, 2024
1 parent 82170ce commit 373e288
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/detection/displayserver/displayserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/detection/displayserver/linux/wmde.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 373e288

Please sign in to comment.