Skip to content

Commit

Permalink
Attempt to resolve wayland color profile crash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Owad committed Aug 11, 2023
1 parent 48693f7 commit 2a6bdfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qvlinuxx11functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<QNativeInterface::QX11Application>())
return x11App->display();
Expand Down

0 comments on commit 2a6bdfa

Please sign in to comment.