Chromium Code Reviews| 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..860126d75087a6fd922b4d94c88be4700b7746e3 100644 |
| --- a/ash/wm/native_cursor_manager_ash_mus.cc |
| +++ b/ash/wm/native_cursor_manager_ash_mus.cc |
| @@ -44,6 +44,13 @@ 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. |
| + aura::Window::Windows root_windows = Shell::Get()->GetAllRootWindows(); |
| + for (aura::Window::Windows::iterator iter = root_windows.begin(); |
|
sky
2017/06/23 23:31:28
for (aura::Window* root : Shell::Get()->GetAllRoot
|
| + iter != root_windows.end(); ++iter) |
| + (*iter)->GetHost()->SetCursor(cursor); |
| + |
| Shell::Get() |
| ->window_tree_host_manager() |
| ->cursor_window_controller() |