| | |
| | | } 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)); |
| | | } |
| | | |
| | |
| | | // 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)); |
| | | } |
| | | |