From 2c96e1612e5e7f6fd55abbb7a8e3e7d9387d23fe Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:02:37 +0100 Subject: [PATCH] fix: incorrect WCO tooltip in RTL (#45424) 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