From ba8d11b3057fde8d74f798f8fb30fdc738c1ff41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 14 Sep 2015 09:06:41 +0200 Subject: [PATCH] Better support AbstractClient in Deleted::copyToDeleted At the moment only decoration/border handling is Client specific. Everything else can be shared with AbstractClient. --- deleted.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deleted.cpp b/deleted.cpp index 08dd5f7f67..f49ff57491 100644 --- a/deleted.cpp +++ b/deleted.cpp @@ -86,7 +86,6 @@ void Deleted::copyToDeleted(Toplevel* c) cinfo->disable(); Client* client = dynamic_cast(c); if (client) { - m_wasClient = true; no_border = client->noBorder(); if (!no_border) { client->layoutDecorationRects(decoration_left, @@ -100,10 +99,11 @@ void Deleted::copyToDeleted(Toplevel* c) } } } - m_minimized = client->isMinimized(); - m_modal = client->isModal(); } if (AbstractClient *client = dynamic_cast(c)) { + m_wasClient = true; + m_minimized = client->isMinimized(); + m_modal = client->isModal(); m_mainClients = client->mainClients(); foreach (AbstractClient *c, m_mainClients) { connect(c, &AbstractClient::windowClosed, this, &Deleted::mainClientClosed);