Skip to content

Commit

Permalink
OpenGL (Linux): suppress IO
Browse files Browse the repository at this point in the history
Fix #1435
  • Loading branch information
CarterLi committed Dec 13, 2024
1 parent ab1a11c commit 009a788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/detection/opengl/opengl_linux.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "fastfetch.h"
#include "opengl.h"
#include "common/io/io.h"

#include <string.h>

Expand Down Expand Up @@ -140,6 +141,8 @@ static const char* detectByGlx(FFOpenGLResult* result)
FF_LIBRARY_LOAD_SYMBOL_VAR_MESSAGE(glx, data, XCloseDisplay);
FF_LIBRARY_LOAD_SYMBOL_VAR_MESSAGE(glx, data, XFree);

FF_SUPPRESS_IO();

return glxHandleData(result, &data);
}

Expand Down

0 comments on commit 009a788

Please sign in to comment.