diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-19 18:21:20 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-19 18:21:20 +0000 |
commit | c1683eb78c7b430c3742dc4ea7d0c6fa738ef12c (patch) | |
tree | 3de68872cc76a5cc97d4d9457606ea6eef46143e /views | |
parent | baff4519ccf57ef96204cc1eb6bde888ef979fc8 (diff) | |
download | chromium_src-c1683eb78c7b430c3742dc4ea7d0c6fa738ef12c.zip chromium_src-c1683eb78c7b430c3742dc4ea7d0c6fa738ef12c.tar.gz chromium_src-c1683eb78c7b430c3742dc4ea7d0c6fa738ef12c.tar.bz2 |
aura: Make key and mouse events for renderers work correctly in X11 with RWHVAura.
BUG=none
TEST=manually
Review URL: http://codereview.chromium.org/8353005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/widget/native_widget_aura.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc index 19df758..ac3d781 100644 --- a/views/widget/native_widget_aura.cc +++ b/views/widget/native_widget_aura.cc @@ -534,13 +534,13 @@ bool NativeWidgetAura::ShouldActivate(aura::Event* event) { void NativeWidgetAura::OnActivated() { delegate_->OnNativeWidgetActivationChanged(true); - if (IsVisible()) + if (IsVisible() && GetWidget()->non_client_view()) GetWidget()->non_client_view()->SchedulePaint(); } void NativeWidgetAura::OnLostActive() { delegate_->OnNativeWidgetActivationChanged(false); - if (IsVisible()) + if (IsVisible() && GetWidget()->non_client_view()) GetWidget()->non_client_view()->SchedulePaint(); } |