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

Unified Diff: services/ui/ws/window_manager_display_root.cc

Issue 2667073002: mash: changes can_accept_events to an enum (Closed)
Patch Set: merge Created 3 years, 11 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 | « services/ui/ws/window_manager_access_policy.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_manager_display_root.cc
diff --git a/services/ui/ws/window_manager_display_root.cc b/services/ui/ws/window_manager_display_root.cc
index f8ff144b2b3b1e735e2eb5037d33b3547b97ce3b..03c69f883f642fe3b5943d31616e798010d535a4 100644
--- a/services/ui/ws/window_manager_display_root.cc
+++ b/services/ui/ws/window_manager_display_root.cc
@@ -16,6 +16,8 @@ WindowManagerDisplayRoot::WindowManagerDisplayRoot(Display* display)
root_.reset(window_server()->CreateServerWindow(
window_server()->display_manager()->GetAndAdvanceNextRootId(),
ServerWindow::Properties()));
+ root_->set_event_targeting_policy(
+ mojom::EventTargetingPolicy::DESCENDANTS_ONLY);
// Our root is always a child of the Display's root. Do this
// before the WindowTree has been created so that the client doesn't get
// notified of the add, bounds change and visibility change.
« no previous file with comments | « services/ui/ws/window_manager_access_policy.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698