Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: ui/views/cocoa/bridged_native_widget.mm

Issue 2407153004: MacViews: Don't set window's alpha to 0 if window is already visible. (Closed)
Patch Set: Check window's visibility before setting alpha to 0 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b0ab01429cdce334feb89a25766c3dd61b38532a..a39d0ec65ae10e6dba938923a4a74fba62ebbbbd 100644
--- a/ui/views/cocoa/bridged_native_widget.mm
+++ b/ui/views/cocoa/bridged_native_widget.mm
@@ -578,7 +578,7 @@ void BridgedNativeWidget::SetVisibilityState(WindowVisibilityState new_state) {
// mouse clicks till then.
// TODO(karandeepb): Investigate whether similar technique is needed for other
// dialog types.
- if (layer() && [window_ isOpaque] &&
+ if (layer() && [window_ isOpaque] && !window_visible_ &&
!native_widget_mac_->GetWidget()->IsModal()) {
initial_visibility_suppressed_ = true;
[window_ setAlphaValue:0.0];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698