Chromium Code Reviews| Index: ui/views/cocoa/bridged_native_widget.mm |
| diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm |
| index d4e0125716d49df204a2ff73a0446574c4832144..c4d2d5c13841a0137a20d09212144e0559fff5a9 100644 |
| --- a/ui/views/cocoa/bridged_native_widget.mm |
| +++ b/ui/views/cocoa/bridged_native_widget.mm |
| @@ -578,7 +578,8 @@ NSComparisonResult SubviewSorter(NSViewComparatorValue lhs, |
| // mouse clicks till then. |
| // TODO(karandeepb): Investigate whether similar technique is needed for other |
| // dialog types. |
| - if ([window_ isOpaque] && !native_widget_mac_->GetWidget()->IsModal()) { |
| + if (layer() && [window_ isOpaque] && |
|
tapted
2016/09/19 07:35:34
This reminds me a bit of https://codereview.chromi
karandeepb
2016/09/20 08:04:51
NativeWidgetAura initializes the layer before show
|
| + !native_widget_mac_->GetWidget()->IsModal()) { |
| initial_visibility_suppressed_ = true; |
| [window_ setAlphaValue:0.0]; |
| [window_ setIgnoresMouseEvents:YES]; |