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

Unified Diff: services/ui/ws/window_manager_access_policy.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: Check if can_accept_events setting has changed; change names 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
Index: services/ui/ws/window_manager_access_policy.cc
diff --git a/services/ui/ws/window_manager_access_policy.cc b/services/ui/ws/window_manager_access_policy.cc
index 948ca2aef069f5a32c15d1249111cbb2e4050c4f..816d8996423009c86f29e29238b83964d74212f3 100644
--- a/services/ui/ws/window_manager_access_policy.cc
+++ b/services/ui/ws/window_manager_access_policy.cc
@@ -134,6 +134,12 @@ bool WindowManagerAccessPolicy::CanSetHitTestMask(
delegate_->HasRootForAccessPolicy(window);
}
+bool WindowManagerAccessPolicy::CanSetAcceptEvents(
+ const ServerWindow* window) const {
+ return WasCreatedByThisClient(window) ||
+ delegate_->HasRootForAccessPolicy(window);
+}
+
bool WindowManagerAccessPolicy::CanSetCursorProperties(
const ServerWindow* window) const {
return WasCreatedByThisClient(window) ||

Powered by Google App Engine
This is Rietveld 408576698