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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Issue 2295443002: X11: Don't Activate() on Show() (Closed)
Patch Set: Created 4 years, 4 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/widget/desktop_aura/desktop_window_tree_host_x11.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
index 62068f5774b191095037c48749da60adc215812c..d45f8324f13d56b57002ca31217e1e771656cdd3 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
@@ -572,13 +572,6 @@ void DesktopWindowTreeHostX11::ShowWindowWithState(
break;
}
- // Makes the window activated by default if the state is not INACTIVE or
- // MINIMIZED.
- if (show_state != ui::SHOW_STATE_INACTIVE &&
- show_state != ui::SHOW_STATE_MINIMIZED) {
- Activate();
- }
-
native_widget_delegate_->AsWidget()->SetInitialFocus(show_state);
}
« 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