From f112b0b052a7237caba1074bcd78659f9524a770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 3 Dec 2015 13:49:36 +0100 Subject: [PATCH] Move handling for decoration rects in Deleted::copyToDeleted Can now operate on the AbstractClient instead of Client. --- deleted.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deleted.cpp b/deleted.cpp index 8fbd334f53..115b2b2b11 100644 --- a/deleted.cpp +++ b/deleted.cpp @@ -90,10 +90,6 @@ void Deleted::copyToDeleted(Toplevel* c) if (client) { no_border = client->noBorder(); if (!no_border) { - client->layoutDecorationRects(decoration_left, - decoration_top, - decoration_right, - decoration_bottom); if (client->isDecorated()) { if (Decoration::Renderer *renderer = client->decoratedClient()->renderer()) { m_decorationRenderer = renderer; @@ -103,6 +99,12 @@ void Deleted::copyToDeleted(Toplevel* c) } } if (AbstractClient *client = dynamic_cast(c)) { + if (!client->noBorder()) { + client->layoutDecorationRects(decoration_left, + decoration_top, + decoration_right, + decoration_bottom); + } m_wasClient = true; m_minimized = client->isMinimized(); m_modal = client->isModal();