do not change window placement on style changes
svn path=/trunk/kdebase/kwin/; revision=44451
This commit is contained in:
parent
a637bea8e4
commit
12f591923c
1 changed files with 7 additions and 12 deletions
|
@ -1978,22 +1978,17 @@ void Workspace::slotResetAllClients()
|
|||
{
|
||||
for (ClientList::Iterator it = clients.begin(); it != clients.end(); ++it) {
|
||||
Client *oldClient = (*it);
|
||||
|
||||
WId w = oldClient->window();
|
||||
bool mapped = oldClient->isVisible();
|
||||
oldClient->hide();
|
||||
oldClient->releaseWindow();
|
||||
// Replace oldClient with newClient in all lists
|
||||
Client *newClient = clientFactory (this, w);
|
||||
(*it) = newClient;
|
||||
ClientList::Iterator jt = stacking_order.find (oldClient);
|
||||
//assert (jt != stacking_order.end());
|
||||
(*jt) = newClient;
|
||||
jt = focus_chain.find (oldClient);
|
||||
//assert (jt != focus_chain.end());
|
||||
(*jt) = newClient;
|
||||
// Delete the old, display the new
|
||||
delete oldClient;
|
||||
newClient->manage (mapped);
|
||||
newClient->manage( TRUE );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue