Yuhang Zhao
2023-12-28 d61db440e1c757a656ec2ab91f0c2f39ccd5d5f3
minor tweaks
2个文件已修改
6 ■■■■ 已修改文件
src/core/contexts/win32windowcontext.cpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/widgets/widgetwindowagent_win.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/core/contexts/win32windowcontext.cpp
@@ -696,6 +696,10 @@
            } else {
                ::AdjustWindowRectEx(&frame, style, FALSE, exStyle);
            }
            frame.left = std::abs(frame.left);
            frame.top = std::abs(frame.top);
            frame.right = std::abs(frame.right);
            frame.bottom = std::abs(frame.bottom);
            return QVariant::fromValue(rect2qrect(frame));
        }
src/widgets/widgetwindowagent_win.cpp
@@ -111,7 +111,7 @@
            // border, and we need to extend the non-client area to the whole title
            // bar.
            QRect frame = ctx->windowAttribute(QStringLiteral("title-bar-rect")).toRect();
            QMargins margins{0, -frame.top(), 0, 0};
            QMargins margins{0, frame.top(), 0, 0};
            ctx->setWindowAttribute(QStringLiteral("extra-margins"), QVariant::fromValue(margins));
        }