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

Unified Diff: ash/wm/native_cursor_manager_ash_mus.cc

Issue 2955623003: In mushrome, keep the state of the cursor locally. (Closed)
Patch Set: c++11 loop Created 3 years, 6 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 | « no previous file | testing/buildbot/filters/ash_unittests_mus.filter » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/native_cursor_manager_ash_mus.cc
diff --git a/ash/wm/native_cursor_manager_ash_mus.cc b/ash/wm/native_cursor_manager_ash_mus.cc
index 279ae7e4ec87309a6ee7c1b644004c47ba4b3af2..b8ea0eaff86fef243a252b614973b5d87f3c32df 100644
--- a/ash/wm/native_cursor_manager_ash_mus.cc
+++ b/ash/wm/native_cursor_manager_ash_mus.cc
@@ -44,6 +44,11 @@ void SetCursorOnAllRootWindows(gfx::NativeCursor cursor) {
// event targeting issue.
ShellPort::Get()->SetGlobalOverrideCursor(mojo_cursor);
+ // Make sure the local state is set properly, so that local queries show that
+ // we set the cursor.
+ for (aura::Window* root : Shell::Get()->GetAllRootWindows())
+ root->GetHost()->SetCursor(cursor);
+
Shell::Get()
->window_tree_host_manager()
->cursor_window_controller()
« no previous file with comments | « no previous file | testing/buildbot/filters/ash_unittests_mus.filter » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698