Index: win8/metro_driver/chrome_app_view_ash.cc |
diff --git a/win8/metro_driver/chrome_app_view_ash.cc b/win8/metro_driver/chrome_app_view_ash.cc |
index 0560e739b653d9b165925531d9d286b66bcb7e82..d0530bdb75c587f4f64e524aa9e2cd60492cfca7 100644 |
--- a/win8/metro_driver/chrome_app_view_ash.cc |
+++ b/win8/metro_driver/chrome_app_view_ash.cc |
@@ -1303,14 +1303,14 @@ HRESULT ChromeAppViewAsh::OnWindowActivated( |
// the same. |
if (state == winui::Core::CoreWindowActivationState_CodeActivated || |
state == winui::Core::CoreWindowActivationState_PointerActivated) { |
- if (text_service_) |
- text_service_->OnWindowActivated(); |
ui_channel_->Send(new MetroViewerHostMsg_WindowActivated(false)); |
} |
} else { |
// On Windows 7, we force a repaint when the window is activated. |
ui_channel_->Send(new MetroViewerHostMsg_WindowActivated(true)); |
} |
+ if (text_service_) |
+ text_service_->OnWindowActivated(); |
return S_OK; |
} |