Fix wrong condition introduced in last commit.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
94cb8729aa
commit
0239c298b3
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue