| Index: components/exo/pointer.cc
|
| diff --git a/components/exo/pointer.cc b/components/exo/pointer.cc
|
| index 5640ae93c59f81a7630688fa04c4b1cd93872a17..0c81c043317ff5d8b91c8e54a60a0c9037362227 100644
|
| --- a/components/exo/pointer.cc
|
| +++ b/components/exo/pointer.cc
|
| @@ -216,10 +216,10 @@ void Pointer::OnMouseEvent(ui::MouseEvent* event) {
|
|
|
| // Update cursor location if mouse event caused it to change.
|
| gfx::Point mouse_location = aura::Env::GetInstance()->last_mouse_location();
|
| - if (mouse_location != widget_->GetNativeWindow()->bounds().origin()) {
|
| - gfx::Rect bounds = widget_->GetNativeWindow()->bounds();
|
| + gfx::Rect bounds = widget_->GetWindowBoundsInScreen();
|
| + if (mouse_location != bounds.origin()) {
|
| bounds.set_origin(mouse_location);
|
| - widget_->GetNativeWindow()->SetBounds(bounds);
|
| + widget_->SetBounds(bounds);
|
| }
|
|
|
| UpdateCursorScale();
|
|
|