Fixed null pointer segfault

svn path=/trunk/kdebase/kwin/; revision=158475
This commit is contained in:
Anders Widell 2002-05-29 19:11:01 +00:00
parent 0e524287ab
commit f1638b1238

View file

@ -748,7 +748,8 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
// if client has initial state set to Iconic and is transient with a parent
// window that is not Iconic, set init_state to Normal
if ((init_state == IconicState) && isTransient() && transientFor() != 0) {
if(!workspace()->findClient(transientFor())->isIconified()) {
Client* client = workspace()->findClient(transientFor());
if(client == 0 || !client->isIconified()) {
init_state = NormalState;
}
}