diff --git a/winnativeeventfilter.cpp b/winnativeeventfilter.cpp index d60baf2..3a16cd6 100644 --- a/winnativeeventfilter.cpp +++ b/winnativeeventfilter.cpp @@ -471,7 +471,7 @@ bool WinNativeEventFilter::nativeEventFilter(const QByteArray &eventType, // 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 default frame will be fine. - if (IsMaximized(_hWnd) || !IsFullScreened(_hWnd)) { + if (IsMaximized(_hWnd) && !IsFullScreened(_hWnd)) { // Windows automatically adds a standard width border to all // sides when a window is maximized. int frameThickness_x =