From 009a7888b5a3fb0c39208e2f6fed80d0fb132a2c Mon Sep 17 00:00:00 2001 From: Carter Li Date: Fri, 13 Dec 2024 15:40:36 +0800 Subject: [PATCH] OpenGL (Linux): suppress IO Fix #1435 --- src/detection/opengl/opengl_linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detection/opengl/opengl_linux.c b/src/detection/opengl/opengl_linux.c index 452d3e6bd..1aaf49f22 100644 --- a/src/detection/opengl/opengl_linux.c +++ b/src/detection/opengl/opengl_linux.c @@ -1,5 +1,6 @@ #include "fastfetch.h" #include "opengl.h" +#include "common/io/io.h" #include @@ -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); }