diff --git a/client.cpp b/client.cpp index 529b32fa2c..7d327adff0 100644 --- a/client.cpp +++ b/client.cpp @@ -443,10 +443,11 @@ void Client::updateInputWindow() QRegion region; if (!noBorder() && m_decoration) { - const int left = m_decoration->extendedBorderLeft(); - const int top = m_decoration->extendedBorderTop(); - const int right = m_decoration->extendedBorderRight(); - const int bottom = m_decoration->extendedBorderBottom(); + const QMargins &r = m_decoration->resizeOnlyBorders(); + const int left = r.left(); + const int top = r.top(); + const int right = r.right(); + const int bottom = r.bottom(); if (left != 0 || top != 0 || right != 0 || bottom != 0) { region = QRegion(-left, -top, @@ -532,7 +533,7 @@ void Client::createDecoration(const QRect& oldgeom) performMouseCommand(options->operationTitlebarMouseWheel(angleDelta.y()), Cursor::pos()); } ); - connect(m_decoration, &KDecoration2::Decoration::extendedBordersChanged, this, &Client::updateInputWindow); + connect(m_decoration, &KDecoration2::Decoration::resizeOnlyBordersChanged, this, &Client::updateInputWindow); connect(m_decoration, &KDecoration2::Decoration::bordersChanged, this, [this]() { GeometryUpdatesBlocker blocker(this); diff --git a/clients/aurorae/src/aurorae.cpp b/clients/aurorae/src/aurorae.cpp index 2e0f7951ff..5311496bd6 100644 --- a/clients/aurorae/src/aurorae.cpp +++ b/clients/aurorae/src/aurorae.cpp @@ -318,7 +318,7 @@ void Decoration::init() setupBorders(m_item); if (m_extendedBorders) { auto updateExtendedBorders = [this] { - setExtendedBorders(m_extendedBorders->left(), m_extendedBorders->right(), m_extendedBorders->top(), m_extendedBorders->bottom()); + setResizeOnlyBorders(*m_extendedBorders); }; updateExtendedBorders(); connect(m_extendedBorders, &KWin::Borders::leftChanged, this, updateExtendedBorders);