| Index: ui/aura/window.cc
|
| ===================================================================
|
| --- ui/aura/window.cc (revision 130641)
|
| +++ ui/aura/window.cc (working copy)
|
| @@ -187,6 +187,11 @@
|
| }
|
|
|
| gfx::Rect Window::GetScreenBounds() const {
|
| + // TODO(beng): There may be a better way to handle this, and the existing code
|
| + // is likely wrong anyway in a multi-monitor world, but this will
|
| + // do for now.
|
| + if (!GetRootWindow())
|
| + return bounds();
|
| gfx::Point origin = bounds().origin();
|
| Window::ConvertPointToWindow(parent_, GetRootWindow(), &origin);
|
| return gfx::Rect(origin, bounds().size());
|
|
|