From e7fa5c709c555bbe248bc98b50a14b5cfa9ea1d9 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 3 Feb 2025 10:50:50 +0100 Subject: [PATCH] fix: incorrect WCO tooltip in RTL (#45405) --- 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