Index: ash/wm/toplevel_window_event_filter.cc |
diff --git a/ash/wm/toplevel_window_event_filter.cc b/ash/wm/toplevel_window_event_filter.cc |
index 5909203a118454894c38d00517709f11041579a3..335f7e22d271d353a3bea0da669f79831da4e350 100644 |
--- a/ash/wm/toplevel_window_event_filter.cc |
+++ b/ash/wm/toplevel_window_event_filter.cc |
@@ -14,6 +14,7 @@ |
#include "base/message_loop.h" |
#include "base/run_loop.h" |
#include "ui/aura/client/aura_constants.h" |
+#include "ui/aura/client/cursor_client.h" |
#include "ui/aura/env.h" |
#include "ui/aura/root_window.h" |
#include "ui/aura/window.h" |
@@ -267,7 +268,10 @@ void ToplevelWindowEventFilter::RunMoveLoop(aura::Window* source, |
root_window, source->parent(), &drag_location); |
} |
CreateScopedWindowResizer(source, drag_location, HTCAPTION); |
- source->GetRootWindow()->SetCursor(ui::kCursorPointer); |
+ aura::client::CursorClient* cursor_client = |
+ aura::client::GetCursorClient(root_window); |
+ if (cursor_client) |
+ cursor_client->SetCursor(ui::kCursorPointer); |
#if !defined(OS_MACOSX) |
MessageLoopForUI* loop = MessageLoopForUI::current(); |
MessageLoop::ScopedNestableTaskAllower allow_nested(loop); |