diff --git a/src/core/framelesshelpercore_global.cpp b/src/core/framelesshelpercore_global.cpp index 9a8ee784..87e1bbc0 100644 --- a/src/core/framelesshelpercore_global.cpp +++ b/src/core/framelesshelpercore_global.cpp @@ -43,6 +43,9 @@ #endif #include #include +#ifdef Q_OS_LINUX +# include +#endif #ifndef COMPILER_STRING # ifdef Q_CC_CLANG // Must be before GNU, because Clang claims to be GNU too. @@ -111,6 +114,10 @@ void initialize() } inited = true; +#ifdef Q_OS_LINUX + gtk_init(nullptr, nullptr); +#endif + #ifdef Q_OS_LINUX // Qt's Wayland experience is not good, so we force the XCB backend here. // TODO: Remove this hack once Qt's Wayland implementation is good enough.