fix nonreproducible crash

svn path=/trunk/kdebase/kwin/; revision=397585
This commit is contained in:
Dirk Mueller 2005-03-14 18:23:13 +00:00
parent 352beb9070
commit e7ad67c64b

View file

@ -712,7 +712,7 @@ Layer Client::belongsToLayer() const
// i.e. the window set to be topmost by the user (also includes transients of the fullscreen window)
const Client* ac = workspace()->mostRecentlyActivatedClient(); // instead of activeClient() - avoids flicker
const Client* top = workspace()->topClientOnDesktop( desktop(), true );
if( isFullScreen() && ac != NULL
if( isFullScreen() && ac != NULL && top != NULL
&& ( ac == this || this->hasTransient( ac, true ))
&& ( top == this || this->hasTransient( top, true )))
return ActiveLayer;