svn path=/trunk/kdebase/kwin/; revision=211733
This commit is contained in:
Luboš Luňák 2003-03-06 12:12:02 +00:00
parent a25f11125a
commit 25ccdb783f
2 changed files with 11 additions and 1 deletions

View file

@ -2137,9 +2137,16 @@ void Client::killWindow()
// always kill this client at the server // always kill this client at the server
XKillClient(qt_xdisplay(), win ); XKillClient(qt_xdisplay(), win );
workspace()->destroyClient( this ); // needs to be delayed, because this may be called from the client
// popup menu, and there may be possibly code still touching
// this instance after returning from killWindow()
QTimer::singleShot( 0, this, SLOT( destroyClient()));
} }
void Client::destroyClient()
{
workspace()->destroyClient( this );
}
/*! /*!

View file

@ -287,6 +287,9 @@ protected:
NETWinInfo * netWinInfo(); NETWinInfo * netWinInfo();
private slots:
void destroyClient();
private: private:
QSize sizeForWindowSize( const QSize&, bool ignore_height = FALSE ) const; QSize sizeForWindowSize( const QSize&, bool ignore_height = FALSE ) const;
void getWmNormalHints(); void getWmNormalHints();