From 33fac6779815fa9d14b588186c700b0529c9e3ec Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Tue, 28 May 2024 20:22:01 -0700 Subject: [PATCH] core: use the simple animation driver Seems to provide much higher quality animations. --- src/core/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/main.cpp b/src/core/main.cpp index 24acdfc..220bde3 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -326,6 +326,13 @@ int qs_main(int argc, char** argv) { qputenv(var.toUtf8(), val.toUtf8()); } + // The simple animation driver seems to work far better than the default one + // when more than one window is in use, and even with a single window appears + // to improve animation quality. + if (!qEnvironmentVariableIsSet("QSG_USE_SIMPLE_ANIMATION_DRIVER")) { + qputenv("QSG_USE_SIMPLE_ANIMATION_DRIVER", "1"); + } + QGuiApplication::setDesktopSettingsAware(desktopSettingsAware); QGuiApplication* app = nullptr;