From 0fbca2dcbde61bab2569a1fa635a0f5c44b68169 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 6 Oct 2025 23:33:53 +0600 Subject: [PATCH] helium/core: disable touch ui --- patches/helium/core/disable-touch-ui.patch | 17 +++++++++++++++++ patches/series | 1 + 2 files changed, 18 insertions(+) create mode 100644 patches/helium/core/disable-touch-ui.patch diff --git a/patches/helium/core/disable-touch-ui.patch b/patches/helium/core/disable-touch-ui.patch new file mode 100644 index 00000000..4ad55c5e --- /dev/null +++ b/patches/helium/core/disable-touch-ui.patch @@ -0,0 +1,17 @@ +--- a/ui/base/pointer/touch_ui_controller.cc ++++ b/ui/base/pointer/touch_ui_controller.cc +@@ -175,13 +175,7 @@ void TouchUiController::TouchUiScoperFor + // static + TouchUiController* TouchUiController::Get() { + static base::NoDestructor instance([] { +- const std::string switch_value = +- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( +- switches::kTopChromeTouchUi); +- if (switch_value == switches::kTopChromeTouchUiDisabled) +- return TouchUiState::kDisabled; +- const bool enabled = switch_value == switches::kTopChromeTouchUiEnabled; +- return enabled ? TouchUiState::kEnabled : TouchUiState::kAuto; ++ return TouchUiState::kDisabled; + }()); + return instance.get(); + } diff --git a/patches/series b/patches/series index c3b4f436..84635d76 100644 --- a/patches/series +++ b/patches/series @@ -169,6 +169,7 @@ helium/core/reduce-accept-language-headers.patch helium/core/disable-ad-topics-and-etc.patch helium/core/enable-parallel-downloading.patch helium/core/infinite-tab-freezing.patch +helium/core/disable-touch-ui.patch helium/settings/move-search-suggest.patch helium/settings/remove-autofill.patch