Fix wrong condition introduced in last commit.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2020-04-22 11:48:23 +08:00
parent 94cb8729aa
commit 0239c298b3
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ bool WinNativeEventFilter::nativeEventFilter(const QByteArray &eventType,
// We don't need this correction when we're fullscreen. We will have // We don't need this correction when we're fullscreen. We will have
// the WS_POPUP size, so we don't have to worry about borders, and // the WS_POPUP size, so we don't have to worry about borders, and
// the default frame will be fine. // the default frame will be fine.
if (IsMaximized(_hWnd) || !IsFullScreened(_hWnd)) { if (IsMaximized(_hWnd) && !IsFullScreened(_hWnd)) {
// Windows automatically adds a standard width border to all // Windows automatically adds a standard width border to all
// sides when a window is maximized. // sides when a window is maximized.
int frameThickness_x = int frameThickness_x =