diff --git a/src/platform-plugin/qgtkintegration.cpp b/src/platform-plugin/qgtkintegration.cpp index aab53ba..86a5879 100644 --- a/src/platform-plugin/qgtkintegration.cpp +++ b/src/platform-plugin/qgtkintegration.cpp @@ -306,7 +306,7 @@ void *QGtkIntegration::nativeResourceForScreen(const QByteArray &resource, QScre qWarning() << "Can't get root X window, GDK_BACKEND is not X11."; } - result = reinterpret_cast(screen ? screen->root : nullptr); + result = reinterpret_cast(screen ? screen->root : 0); #endif } else { qWarning() << "Unimplemented request for " << resource << " on " << screen;