diff options
Diffstat (limited to 'chromium/components/exo/pointer.cc')
-rw-r--r-- | chromium/components/exo/pointer.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chromium/components/exo/pointer.cc b/chromium/components/exo/pointer.cc index 61442ed0608..1697f5c34dc 100644 --- a/chromium/components/exo/pointer.cc +++ b/chromium/components/exo/pointer.cc @@ -380,8 +380,12 @@ void Pointer::OnCursorCaptured(const gfx::Point& hotspot, void Pointer::UpdateCursor() { DCHECK(focus_); + aura::Window* root_window = focus_->window()->GetRootWindow(); + if (!root_window) + return; + aura::client::CursorClient* cursor_client = - aura::client::GetCursorClient(focus_->window()->GetRootWindow()); + aura::client::GetCursorClient(root_window); if (cursor_client) cursor_client->SetCursor(cursor_); } |