Handle double click on Decoration title bar

Passed to the proper event handler in Workspace.
icc-effect-5.14.5
Martin Gräßlin 2014-07-24 17:26:39 +02:00
parent 98a5c4e050
commit 8bf2a9855a
1 changed files with 6 additions and 0 deletions

View File

@ -517,6 +517,12 @@ void Client::createDecoration(const QRect& oldgeom)
if (m_decoration) {
m_decoration->update();
connect(m_decoration, &KDecoration2::Decoration::shadowChanged, this, &Toplevel::getShadow);
connect(m_decoration, &KDecoration2::Decoration::titleBarDoubleClicked, this,
[this]() {
Workspace::self()->performWindowOperation(this, options->operationTitlebarDblClick());
dontMoveResize();
}
);
}
move(calculateGravitation(false));