Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[auth] Work around Windows animation stutter (#10906)

neeraj-pilotdc40ca9f89a5
diff --git a/mobile/apps/auth/changes/linux-gnome-titlebar-dark.md b/mobile/apps/auth/changes/linux-gnome-titlebar-dark.md
new file mode 100644
index 0000000000..6aaa17168a
--- /dev/null
+++ b/mobile/apps/auth/changes/linux-gnome-titlebar-dark.md
@@ -0,0 +1 @@
+- Matched the Auth Linux title bar to GNOME's dark mode preference.
diff --git a/mobile/apps/auth/changes/windows-frame-pacing.md b/mobile/apps/auth/changes/windows-frame-pacing.md
new file mode 100644
index 0000000000..49ee19f6d9
--- /dev/null
+++ b/mobile/apps/auth/changes/windows-frame-pacing.md
@@ -0,0 +1 @@
+- Improved animation smoothness for Auth on Windows high-refresh-rate displays.
diff --git a/mobile/apps/auth/windows/runner/main.cpp b/mobile/apps/auth/windows/runner/main.cpp
index 4ba3a7dc1e..6685d28c0a 100644
--- a/mobile/apps/auth/windows/runner/main.cpp
+++ b/mobile/apps/auth/windows/runner/main.cpp
@@ -65,6 +65,10 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
flutter::DartProject project(L"data");
+ // TODO: Remove after upgrading past Flutter 3.38.10.
+ // Added for Flutter Windows frame-pacing issues tracked in
+ // flutter/flutter#175135 and flutter/flutter#178916.
+ project.set_ui_thread_policy(flutter::UIThreadPolicy::RunOnSeparateThread);
std::vector<std::string> command_line_arguments =
GetCommandLineArguments();