From 5ccd987f61114d42878dc78ce88424d36145c399 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:02:23 +0100 Subject: [PATCH] fix: incorrect WCO tooltip in RTL (#45426) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr --- shell/browser/ui/views/win_caption_button_container.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/browser/ui/views/win_caption_button_container.cc b/shell/browser/ui/views/win_caption_button_container.cc index 2aff060d8c93..3987b4e66282 100644 --- a/shell/browser/ui/views/win_caption_button_container.cc +++ b/shell/browser/ui/views/win_caption_button_container.cc @@ -39,7 +39,8 @@ std::unique_ptr CreateCaptionButton( } bool HitTestCaptionButton(WinCaptionButton* button, const gfx::Point& point) { - return button && button->GetVisible() && button->bounds().Contains(point); + return button && button->GetVisible() && + button->GetMirroredBounds().Contains(point); } } // anonymous namespace