Simplify code

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2021-03-18 15:58:42 +08:00
parent 86dcad3f3a
commit 0f699161cd
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
// 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(msg->hwnd) && !(window->windowState() == Qt::WindowFullScreen)) {
if (IsMaximized(msg->hwnd) && (window->windowState() != Qt::WindowFullScreen)) {
// Windows automatically adds a standard width border to all
// sides when a window is maximized. We have to remove it
// otherwise the content of our window will be cut-off from