diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/window/window_win.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/views/window/window_win.cc b/views/window/window_win.cc index 18857fa..d357768 100644 --- a/views/window/window_win.cc +++ b/views/window/window_win.cc @@ -740,10 +740,11 @@ LRESULT WindowWin::OnNCActivate(BOOL active) { } LRESULT WindowWin::OnNCCalcSize(BOOL mode, LPARAM l_param) { - // We only override WM_NCCALCSIZE if we want non-standard non-client edge - // width. + // We only override the default handling if we need to specify a custom + // non-client edge width. Note that in most cases "no insets" means no + // custom width, but in fullscreen mode we want a custom width of 0. gfx::Insets insets = GetClientAreaInsets(); - if (insets.empty()) + if (insets.empty() && !IsFullscreen()) return WidgetWin::OnNCCalcSize(mode, l_param); RECT* client_rect = mode ? |