Index: ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc |
=================================================================== |
--- ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc (revision 220973) |
+++ ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc (working copy) |
@@ -160,21 +160,9 @@ |
bool active) { |
if (active) |
root_window_host_delegate_->OnHostActivated(); |
- native_widget_delegate_->OnNativeWidgetActivationChanged(active); |
- // If we're not active we need to deactivate the corresponding aura::Window. |
- // This way if a child widget is active it gets correctly deactivated (child |
- // widgets don't get native desktop activation changes, only aura activation |
- // changes). |
- if (!active) { |
- aura::client::ActivationClient* activation_client = |
- aura::client::GetActivationClient(root_window_); |
- if (activation_client) { |
- aura::Window* active_window = activation_client->GetActiveWindow(); |
- if (active_window) |
- activation_client->DeactivateWindow(active_window); |
- } |
- } |
+ desktop_native_widget_aura_->HandleActivationChanged(active); |
+ |
native_widget_delegate_->AsWidget()->GetRootView()->SchedulePaint(); |
} |