Index: ui/views/corewm/compound_event_filter.cc |
diff --git a/ui/views/corewm/compound_event_filter.cc b/ui/views/corewm/compound_event_filter.cc |
index 83e6106ad86e03a6b9adfd077f1e7370b320f3c6..de3e4aa7341daeeed57984af5a4aa3493c978fad 100644 |
--- a/ui/views/corewm/compound_event_filter.cc |
+++ b/ui/views/corewm/compound_event_filter.cc |
@@ -175,11 +175,11 @@ void CompoundEventFilter::SetCursorVisibilityOnEvent(aura::Window* target, |
if (client) { |
if (show && cursor_hidden_by_filter_) { |
cursor_hidden_by_filter_ = false; |
- client->ShowCursor(true); |
+ client->EnableMouseEvents(); |
} else if (client->IsCursorVisible() && !show && |
!cursor_hidden_by_filter_) { |
cursor_hidden_by_filter_ = true; |
- client->ShowCursor(false); |
+ client->DisableMouseEvents(); |
} |
} |
} |