Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index a6f120943f57de515556c227b84f04f8f253b208..b9990b42734ecf3969e9df1182f06db658ede4b8 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -444,6 +444,15 @@ void DesktopWindowTreeHostX11::GetWindowPlacement( |
} |
gfx::Rect DesktopWindowTreeHostX11::GetWindowBoundsInScreen() const { |
+ // Use ui::GetOuterWindowBounds to get the window bounds including the frame. |
+ gfx::Rect bounds; |
+ if (xwindow_) { |
+ if (ui::GetOuterWindowBounds(xwindow_, &bounds)) |
+ return bounds; |
+ } |
+ |
+ // Fall back to just returning the known bounds (which does not include the |
+ // frame). |
return bounds_; |
} |