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

Unified Diff: ui/views/mus/native_widget_mus.cc

Issue 1968133002: views/mus: Fix activating a widget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index ca04c519c22a36467feb9488b854b8f0a38f5f33..93964c19e67e7c913c861ee4fffb7821bb17d9e7 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -829,6 +829,8 @@ bool NativeWidgetMus::IsVisible() const {
void NativeWidgetMus::Activate() {
if (window_)
window_->SetFocus();
+ static_cast<aura::client::ActivationClient*>(focus_client_.get())
+ ->ActivateWindow(content_);
}
void NativeWidgetMus::Deactivate() {
« 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