Skip to content

Commit

Permalink
fix: wayland window top bar buttons unclickable
Browse files Browse the repository at this point in the history
Always return HTCLIENT for the top bar buttons on Linux/Wayland.
  • Loading branch information
msizanoen1 committed Jul 19, 2022
1 parent e918ae4 commit ae87928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/ui/views/client_frame_view_linux.cc
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit ae87928

Please sign in to comment.