Skip to content

Commit

Permalink
fix: wayland window top bar buttons unclickable
Browse files Browse the repository at this point in the history
Use `views::SetHitTestComponent` to make sure that chromium actually
knows which element got hit.
  • Loading branch information
msizanoen1 committed Jul 18, 2022
1 parent 4c6fe63 commit 7aa2e63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/browser/ui/views/client_frame_view_linux.cc
Expand Up @@ -72,6 +72,7 @@ ClientFrameViewLinux::ClientFrameViewLinux()
button.button->SetImageVerticalAlignment(views::ImageButton::ALIGN_MIDDLE);
button.button->SetAccessibleName(
l10n_util::GetStringUTF16(button.accessibility_id));
views::SetHitTestComponent(button.button, button.hit_test_id);
AddChildView(button.button);
}

Expand Down

0 comments on commit 7aa2e63

Please sign in to comment.