small fix

svn path=/trunk/kdebase/kwin/; revision=78049
This commit is contained in:
Matthias Ettrich 2001-01-14 20:48:00 +00:00
parent 927ab8b735
commit ef97333d15

View file

@ -651,6 +651,8 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
// constructor has already set a value for us
if ( session ) {
desk = session->desktop;
if ( desk <= 0 )
desk = workspace()->currentDesktop();
} else if ( desk <= 0 ) {
// if this window is transient, ensure that it is opened on the
// same window as its parent. this is necessary when an application