Skip to content

Commit

Permalink
DisplayServer: fix build on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Nov 30, 2023
1 parent e3f5563 commit 390801a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/detection/displayserver/linux/displayserver_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 390801a

Please sign in to comment.