Merged requested to merge github/fork/aaronp24/kde-clientstring-workaround into master
Created by: aaronp24
KDE calls glXGetClientString with a NULL dpy argument, which crashes in the call to XScreenCount(dpy). Work around it by explicitly checking for this and returning some static strings.
Note that one oddity is that querying the GLX_VERSION with a NULL dpy will return the maximum version supported by libglvnd, but specifying a display will return the maximum supported by any vendor on the display (up to libglvnd's supported maximum).
Signed-off-by: Aaron Plattner email@example.com