fix: NOTREACHED when resizing windows frameless bounds (#33029)
* fix: NOTREACHED when resizing windows frameless bounds * fix: scope to window_->IsResizable()
This commit is contained in:
parent
2205d725f2
commit
59246a4c7c
1 changed files with 8 additions and 0 deletions
|
@ -34,6 +34,14 @@ void WinFrameView::Init(NativeWindowViews* window, views::Widget* frame) {
|
||||||
window_ = window;
|
window_ = window;
|
||||||
frame_ = frame;
|
frame_ = frame;
|
||||||
|
|
||||||
|
// Prevent events from trickling down the views hierarchy here, since
|
||||||
|
// when a given resizable window is frameless we only want to use
|
||||||
|
// FramelessView's ResizingBorderHitTest in
|
||||||
|
// ShouldDescendIntoChildForEventHandling. See
|
||||||
|
// https://chromium-review.googlesource.com/c/chromium/src/+/3251980.
|
||||||
|
if (!window_->has_frame() && window_->IsResizable())
|
||||||
|
frame_->client_view()->SetCanProcessEventsWithinSubtree(false);
|
||||||
|
|
||||||
if (window->IsWindowControlsOverlayEnabled()) {
|
if (window->IsWindowControlsOverlayEnabled()) {
|
||||||
caption_button_container_ =
|
caption_button_container_ =
|
||||||
AddChildView(std::make_unique<WinCaptionButtonContainer>(this));
|
AddChildView(std::make_unique<WinCaptionButtonContainer>(this));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue