Decoration::extendedBorders renamed to ::resizeOnlyBorders
This commit is contained in:
parent
1c90ca9087
commit
8cf402f185
2 changed files with 7 additions and 6 deletions
11
client.cpp
11
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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue