When removing window, set it first to withdrawn state, then start cleaning
it up. CCBUG: 103301 svn path=/trunk/kdebase/kwin/; revision=408336
This commit is contained in:
parent
a062f627ed
commit
64ab03402b
1 changed files with 1 additions and 1 deletions
|
@ -182,6 +182,7 @@ void Client::releaseWindow( bool on_shutdown )
|
|||
leaveMoveResize();
|
||||
finishWindowRules();
|
||||
++block_geometry;
|
||||
setMappingState( WithdrawnState );
|
||||
setModal( false ); // otherwise its mainwindow wouldn't get focus
|
||||
hidden = true; // so that it's not considered visible anymore (can't use hideClient(), it would set flags)
|
||||
if( !on_shutdown )
|
||||
|
@ -214,7 +215,6 @@ void Client::releaseWindow( bool on_shutdown )
|
|||
// may do map+unmap before we initially map the window by calling rawShow() from manage().
|
||||
XUnmapWindow( qt_xdisplay(), client );
|
||||
}
|
||||
setMappingState( WithdrawnState ); // after all is done, tell the app
|
||||
client = None;
|
||||
XDestroyWindow( qt_xdisplay(), wrapper );
|
||||
wrapper = None;
|
||||
|
|
Loading…
Reference in a new issue