From 2a6bdfa1c076975aab7f80f7d76497af9ea1af86 Mon Sep 17 00:00:00 2001 From: Benjamin Owad Date: Fri, 11 Aug 2023 13:50:40 -0400 Subject: [PATCH] Attempt to resolve wayland color profile crash issue --- src/qvlinuxx11functions.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qvlinuxx11functions.cpp b/src/qvlinuxx11functions.cpp index 46ccffb0..5c257418 100644 --- a/src/qvlinuxx11functions.cpp +++ b/src/qvlinuxx11functions.cpp @@ -11,7 +11,9 @@ namespace X11Helper Display* getDisplay() { #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) - return QX11Info::display(); + if (QX11Info::isPlatformX11()) + return QX11Info::display(); + return nullptr; #else if (const auto x11App = qGuiApp->nativeInterface()) return x11App->display();