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

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

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move function locations. Created 4 years, 5 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
« services/ui/ws/server_window.h ('K') | « services/ui/ws/window_tree_unittest.cc ('k') | 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 96e1152550ed51fd2f174643fd47fb5fc6dd7770..fe8bbd9ea47650786409b6ddd5f12c076cf32287 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -682,6 +682,8 @@ void NativeWidgetMus::InitNativeWidget(const Widget::InitParams& params) {
ownership_ = params.ownership;
window_->SetCanFocus(params.activatable ==
Widget::InitParams::ACTIVATABLE_YES);
+ if (!params.accept_events)
+ window_->SetAcceptEvents(params.accept_events);
sadrul 2016/07/09 14:51:22 You can do this unconditionally (like SetCanFocus
riajiang 2016/07/11 15:48:38 Changed it to do the checking in window_tree_clien
window_tree_host_->AddObserver(this);
window_tree_host_->InitHost();
« services/ui/ws/server_window.h ('K') | « services/ui/ws/window_tree_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698