mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-18 13:59:46 +00:00
Move GTK initialization before Qt initialization
To ensure Qt doesn't load GTK earlier than us and gdk_set_allowed_backends respected
This commit is contained in:
@@ -747,8 +747,13 @@ void start() {
|
||||
|
||||
if (const auto integration = BaseGtkIntegration::Instance()) {
|
||||
integration->prepareEnvironment();
|
||||
integration->load();
|
||||
} else {
|
||||
g_warning("GTK integration is disabled, some feature unavailable.");
|
||||
g_warning("GTK integration is disabled, some features unavailable.");
|
||||
}
|
||||
|
||||
if (const auto integration = GtkIntegration::Instance()) {
|
||||
integration->load();
|
||||
}
|
||||
|
||||
#ifdef DESKTOP_APP_USE_PACKAGED_RLOTTIE
|
||||
@@ -947,11 +952,7 @@ namespace ThirdParty {
|
||||
|
||||
void start() {
|
||||
if (const auto integration = BaseGtkIntegration::Instance()) {
|
||||
integration->load();
|
||||
}
|
||||
|
||||
if (const auto integration = GtkIntegration::Instance()) {
|
||||
integration->load();
|
||||
integration->initializeSettings();
|
||||
}
|
||||
|
||||
SetGtkScaleFactor();
|
||||
|
Reference in New Issue
Block a user