Index: ui/views/widget/native_widget_win.cc |
diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc |
index a5f9b9cd6bd777606684d5b56abf7495a8b34123..eea7964cc6b5634c8ad9d3d97a7ecb76e7a7dbaf 100644 |
--- a/ui/views/widget/native_widget_win.cc |
+++ b/ui/views/widget/native_widget_win.cc |
@@ -2202,6 +2202,11 @@ gfx::Insets NativeWidgetWin::GetClientAreaInsets() const { |
return gfx::Insets(border_thickness, border_thickness, border_thickness, |
border_thickness); |
} |
+ |
+ // The hack below doesn't seem to be necessary when the standard frame is |
+ // removed. |
+ if (remove_standard_frame_) |
+ return gfx::Insets(); |
// This is weird, but highly essential. If we don't offset the bottom edge |
// of the client rect, the window client area and window area will match, |
// and when returning to glass rendering mode from non-glass, the client |