From ae8792802a3f5bf7ba6707db66b06b40c0b675fb Mon Sep 17 00:00:00 2001 From: msizanoen1 Date: Mon, 18 Jul 2022 21:52:13 +0700 Subject: [PATCH] fix: wayland window top bar buttons unclickable Always return HTCLIENT for the top bar buttons on Linux/Wayland. --- shell/browser/ui/views/client_frame_view_linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/ui/views/client_frame_view_linux.cc b/shell/browser/ui/views/client_frame_view_linux.cc index efb5870ee193b..15a1e64d821a1 100644 --- a/shell/browser/ui/views/client_frame_view_linux.cc +++ b/shell/browser/ui/views/client_frame_view_linux.cc @@ -207,7 +207,7 @@ int ClientFrameViewLinux::NonClientHitTest(const gfx::Point& point) { for (auto& button : nav_buttons_) { if (button.button->GetVisible() && button.button->GetMirroredBounds().Contains(point)) { - return button.hit_test_id; + return HTCLIENT; } }