Move handling for decoration rects in Deleted::copyToDeleted
Can now operate on the AbstractClient instead of Client.
This commit is contained in:
parent
c1053ce1a5
commit
f112b0b052
1 changed files with 6 additions and 4 deletions
10
deleted.cpp
10
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<AbstractClient*>(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();
|
||||
|
|
Loading…
Reference in a new issue