diff --git a/include/FramelessHelper/Core/framelesshelper_linux.h b/include/FramelessHelper/Core/framelesshelper_linux.h index 3dce8c7..3e0af7f 100644 --- a/include/FramelessHelper/Core/framelesshelper_linux.h +++ b/include/FramelessHelper/Core/framelesshelper_linux.h @@ -56,6 +56,7 @@ // This one is not included in any public headers. using Display = struct _XDisplay; +#if 0 // Causes segfault #ifndef FRAMELESSHELPER_HAS_XLIB extern "C" { @@ -67,6 +68,7 @@ XInitThreads( } // extern "C" #endif // FRAMELESSHELPER_HAS_XLIB +#endif #if __has_include() # include diff --git a/src/core/platformsupport_linux.cpp b/src/core/platformsupport_linux.cpp index a6b7e77..b242b5e 100644 --- a/src/core/platformsupport_linux.cpp +++ b/src/core/platformsupport_linux.cpp @@ -28,6 +28,7 @@ ////////////////////////////////////////////// // Xlib +#if 0 // Causes segfault #ifndef FRAMELESSHELPER_HAS_XLIB FRAMELESSHELPER_STRING_CONSTANT(libX11) @@ -46,6 +47,7 @@ XInitThreads( } #endif // FRAMELESSHELPER_HAS_XLIB +#endif ////////////////////////////////////////////// // XCB