| | |
| | | // When the window is inactive, there is a transparency bug in the top |
| | | // border, and we need to extend the non-client area to the whole title |
| | | // bar. |
| | | QRect frame = ctx->windowAttribute(QStringLiteral("title-bar-rect")).toRect(); |
| | | QRect frame = ctx->windowAttribute(QStringLiteral("window-rect")).toRect(); |
| | | QMargins margins{0, -frame.top(), 0, 0}; |
| | | ctx->setWindowAttribute(QStringLiteral("extra-margins"), QVariant::fromValue(margins)); |
| | | } |
| | |
| | | |
| | | bool eventFilter(QObject *obj, QEvent *event) override { |
| | | Q_UNUSED(obj) |
| | | |
| | | |
| | | switch (event->type()) { |
| | | case QEvent::UpdateRequest: { |
| | | if (!isNormalWindow()) |