Drop the Client specific code from Deleted::copyToDeleted
As DecoratedClient is now on AbstractClient we can have all copying on AbstractClient and don't need any specific Client code.
This commit is contained in:
parent
6270ea35a2
commit
7fc15b48fb
1 changed files with 5 additions and 10 deletions
15
deleted.cpp
15
deleted.cpp
|
@ -86,10 +86,13 @@ void Deleted::copyToDeleted(Toplevel* c)
|
||||||
m_windowRole = c->windowRole();
|
m_windowRole = c->windowRole();
|
||||||
if (WinInfo* cinfo = dynamic_cast< WinInfo* >(info))
|
if (WinInfo* cinfo = dynamic_cast< WinInfo* >(info))
|
||||||
cinfo->disable();
|
cinfo->disable();
|
||||||
Client* client = dynamic_cast<Client*>(c);
|
if (AbstractClient *client = dynamic_cast<AbstractClient*>(c)) {
|
||||||
if (client) {
|
|
||||||
no_border = client->noBorder();
|
no_border = client->noBorder();
|
||||||
if (!no_border) {
|
if (!no_border) {
|
||||||
|
client->layoutDecorationRects(decoration_left,
|
||||||
|
decoration_top,
|
||||||
|
decoration_right,
|
||||||
|
decoration_bottom);
|
||||||
if (client->isDecorated()) {
|
if (client->isDecorated()) {
|
||||||
if (Decoration::Renderer *renderer = client->decoratedClient()->renderer()) {
|
if (Decoration::Renderer *renderer = client->decoratedClient()->renderer()) {
|
||||||
m_decorationRenderer = renderer;
|
m_decorationRenderer = renderer;
|
||||||
|
@ -97,14 +100,6 @@ 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_wasClient = true;
|
||||||
m_minimized = client->isMinimized();
|
m_minimized = client->isMinimized();
|
||||||
m_modal = client->isModal();
|
m_modal = client->isModal();
|
||||||
|
|
Loading…
Reference in a new issue