mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 00:03:58 +01:00
Display (Linux): show brand of Xserver in WM section (#1888)
* Display: add server vendor string * Display (X11): fetch server vendor string using XCB/Xlib * WM: show server vendor string when not empty * Display (XCB): use proper string helper function * Display (X11): shorten "The X.Org Foundation" to "Xorg"
This commit is contained in:
@@ -42,6 +42,13 @@ void ffPrintWM(FFWMOptions* options)
|
||||
putchar(')');
|
||||
}
|
||||
|
||||
if(result->serverVendor.length > 0)
|
||||
{
|
||||
fputs(" [", stdout);
|
||||
ffStrbufWriteTo(&result->serverVendor, stdout);
|
||||
putchar(']');
|
||||
}
|
||||
|
||||
if(pluginName.length > 0)
|
||||
{
|
||||
fputs(" (with ", stdout);
|
||||
|
||||
Reference in New Issue
Block a user