Fix regression.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2020-10-26 18:12:51 +08:00
parent 1cc4d92aca
commit c302bf331c
1 changed files with 3 additions and 1 deletions

View File

@ -982,7 +982,9 @@ void UpdateFrameMarginsForWindow(const HWND handle)
// the client area in WM_NCCALCSIZE so we won't see it due to
// it's covered by the client area (in other words, it's still
// there, we just can't see it).
margins.cyTopHeight = 1;
if (IsDwmCompositionEnabled() && !IsMaximized(handle) && !IsFullScreen(handle)) {
margins.cyTopHeight = 1;
}
if (shouldUseNativeTitleBar() || dontExtendFrame()) {
// If we are going to use the native title bar,
// we should use the original window frame as well.