From 3c2c1d31c93ab1ff0f26e2cd9f78930c88aafd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 19 Jun 2015 01:50:25 +0200 Subject: [PATCH] [wayland] Add support for closeWindow request in PlasmaWindowInterface --- wayland_server.cpp | 1 + 1 file changed, 1 insertion(+) 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()