DisplayServer: fix build on FreeBSD

This commit is contained in:
李通洲
2023-11-30 20:25:23 +08:00
parent e3f5563f8d
commit 390801aee7
@@ -33,10 +33,12 @@ void ffConnectDisplayServerImpl(FFDisplayServerResult* ds)
ffdsConnectXlib(ds);
}
#ifdef __linux__
//This display detection method is display server independent.
//Use it if all connections failed
if(ds->displays.length == 0)
ffdsConnectDrm(ds);
#endif
//This fills in missing information about WM / DE by using env vars and iterating processes
ffdsDetectWMDE(ds);