diff --git a/client.cpp b/client.cpp index 7d327adff0..23900e2653 100644 --- a/client.cpp +++ b/client.cpp @@ -2176,7 +2176,7 @@ Client::Position Client::mousePosition(const QPoint& p) const { Q_UNUSED(p) if (m_decoration) { - switch (m_decoration->windowFrameSection()) { + switch (m_decoration->sectionUnderMouse()) { case Qt::BottomLeftSection: return KDecorationDefines::PositionBottomLeft; case Qt::BottomRightSection: diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp index dc8c7b04bd..8f1682590e 100644 --- a/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp +++ b/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp @@ -102,7 +102,7 @@ void PreviewItem::setDecoration(Decoration *deco) m_decoration = deco; m_decoration->setProperty("visualParent", QVariant::fromValue(this)); connect(m_decoration, &Decoration::bordersChanged, this, updateSlot); - connect(m_decoration, &Decoration::windowFrameSectionChanged, this, + connect(m_decoration, &Decoration::sectionUnderMouseChanged, this, [this](Qt::WindowFrameSection section) { switch (section) { case Qt::TopRightSection: