parent
a25f11125a
commit
25ccdb783f
2 changed files with 11 additions and 1 deletions
|
@ -2137,9 +2137,16 @@ void Client::killWindow()
|
|||
|
||||
// always kill this client at the server
|
||||
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 );
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
|
|
3
client.h
3
client.h
|
@ -287,6 +287,9 @@ protected:
|
|||
|
||||
NETWinInfo * netWinInfo();
|
||||
|
||||
private slots:
|
||||
void destroyClient();
|
||||
|
||||
private:
|
||||
QSize sizeForWindowSize( const QSize&, bool ignore_height = FALSE ) const;
|
||||
void getWmNormalHints();
|
||||
|
|
Loading…
Reference in a new issue