forked from github_mirror/framelesshelper
linux: try fix segfault further
Related reports: #201 #202 Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
8b6dd746eb
commit
c56aa7b594
|
@ -179,9 +179,9 @@ void initialize()
|
||||||
// enough, that is, before the construction of any Q(Gui)Application
|
// enough, that is, before the construction of any Q(Gui)Application
|
||||||
// instances. QCoreApplication won't instantiate the platform plugin.
|
// instances. QCoreApplication won't instantiate the platform plugin.
|
||||||
qputenv(QT_QPA_ENV_VAR, kxcb);
|
qputenv(QT_QPA_ENV_VAR, kxcb);
|
||||||
// Fedora and Arch users report segfault of calling XInitThreads().
|
// Fedora and Arch users report segfault when calling XInitThreads() and gtk_init().
|
||||||
//XInitThreads(); // Users report that GTK is crashing without this.
|
//XInitThreads(); // Users report that GTK is crashing without this.
|
||||||
gtk_init(nullptr, nullptr); // Users report that GTK functionalities won't work without this.
|
//gtk_init(nullptr, nullptr); // Users report that GTK functionalities won't work without this.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(Q_OS_MACOS) && (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)))
|
#if (defined(Q_OS_MACOS) && (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)))
|
||||||
|
|
Loading…
Reference in New Issue