| Index: chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc
|
| diff --git a/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc b/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc
|
| index 01ee9fc4892cce1ffd8c167f0a27ab891a23ee75..0fa0946bb5703152be2d7403471e8402a2a61796 100644
|
| --- a/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc
|
| +++ b/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc
|
| @@ -27,10 +27,12 @@ AppWindowDesktopWindowTreeHostWin::~AppWindowDesktopWindowTreeHostWin() {
|
|
|
| bool AppWindowDesktopWindowTreeHostWin::GetClientAreaInsets(
|
| gfx::Insets* insets) const {
|
| - // Use the default client insets for an opaque frame or a glass popup/app
|
| - // frame.
|
| - if (!app_window_->glass_frame_view())
|
| + // The inset added below is only necessary for the native glass frame, i.e.
|
| + // not for colored frames drawn by Chrome, or when DWM is disabled.
|
| + // In fullscreen the frame is not visible.
|
| + if (!app_window_->glass_frame_view() || IsFullscreen()) {
|
| return false;
|
| + }
|
|
|
| // This tells Windows that most of the window is a client area, meaning Chrome
|
| // will draw it. Windows still fills in the glass bits because of the
|
|
|