do not change window placement on style changes

svn path=/trunk/kdebase/kwin/; revision=44451
This commit is contained in:
Matthias Ettrich 2000-03-24 09:42:23 +00:00
parent a637bea8e4
commit 12f591923c

View file

@ -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 );
}
}