[wayland] Add support for closeWindow request in PlasmaWindowInterface

This commit is contained in:
Martin Gräßlin 2015-06-19 01:50:25 +02:00
parent 97588faea2
commit 3c2c1d31c9

View file

@ -250,6 +250,7 @@ void WaylandServer::announceClientToWindowManagement(AbstractClient *c)
);
connect(c, &AbstractClient::demandsAttentionChanged, w, [w, c] { w->setDemandsAttention(c->isDemandingAttention()); });
connect(c, &QObject::destroyed, w, &KWayland::Server::PlasmaWindowInterface::unmap);
connect(w, &PlasmaWindowInterface::closeRequested, c, [c] { c->closeWindow(); });
}
void WaylandServer::initOutputs()