Commit 582b4d07 authored by erg@chromium.org's avatar erg@chromium.org

linux_aura: Bubbles should release their lock on disable_inactive_rendering.

When opening a bubble on linux aura, we send a message to our anchor
Widget telling it to not render as if it was disabled. We never reenable
this when we go away.

BUG=342008

Review URL: https://codereview.chromium.org/171253002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251883 0039d316-1c4b-4281-b951-d872f2087c98
parent 7ab7ef6f
...@@ -342,9 +342,12 @@ void BubbleDelegateView::UpdateColorsFromTheme(const ui::NativeTheme* theme) { ...@@ -342,9 +342,12 @@ void BubbleDelegateView::UpdateColorsFromTheme(const ui::NativeTheme* theme) {
} }
void BubbleDelegateView::HandleVisibilityChanged(Widget* widget, bool visible) { void BubbleDelegateView::HandleVisibilityChanged(Widget* widget, bool visible) {
if (widget == GetWidget() && visible && anchor_widget() && if (widget == GetWidget() && anchor_widget() &&
anchor_widget()->GetTopLevelWidget()) { anchor_widget()->GetTopLevelWidget()) {
anchor_widget()->GetTopLevelWidget()->DisableInactiveRendering(); if (visible)
anchor_widget()->GetTopLevelWidget()->DisableInactiveRendering();
else
anchor_widget()->GetTopLevelWidget()->EnableInactiveRendering();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment