It is a platform error.
diff --git a/src/x11_fullscreen.c b/src/x11_fullscreen.c
index 7eead3a..bb0a3d5 100644
--- a/src/x11_fullscreen.c
+++ b/src/x11_fullscreen.c
@@ -334,7 +334,8 @@
     vislist = XGetVisualInfo(_glfwLibrary.X11.display, 0, &dummy, &viscount);
     if (vislist == NULL)
     {
-        // TODO: Figure out which error this is
+        _glfwSetError(GLFW_PLATFORM_ERROR,
+                      "X11/GLX: Failed to retrieve the available visuals");
         return 0;
     }