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

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

Issue 2667073002: mash: changes can_accept_events to an enum (Closed)
Patch Set: 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
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index e93c88023faa98ee3d0add72f88614e52ad67e22..68e8657c2bf4f484cbd97736792965bf2f3bbdc3 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -256,6 +256,8 @@ void Display::CreateRootWindow(const gfx::Size& size) {
root_.reset(window_server_->CreateServerWindow(
display_manager()->GetAndAdvanceNextRootId(),
ServerWindow::Properties()));
+ root_->set_event_targeting_policy(
+ mojom::EventTargetingPolicy::DESCENDANTS_ONLY);
root_->SetBounds(gfx::Rect(size));
root_->SetVisible(true);
focus_controller_ = base::MakeUnique<FocusController>(this, root_.get());

Powered by Google App Engine
This is Rietveld 408576698