diff --git a/wayland_server.cpp b/wayland_server.cpp index 24130de056..598e5ec29b 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -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()