Don't create an input window if there is no windows.
BUG: 175541 svn path=/trunk/KDE/kdebase/workspace/; revision=886374
This commit is contained in:
parent
af074404c8
commit
f11107c987
1 changed files with 3 additions and 2 deletions
|
@ -493,9 +493,9 @@ void FlipSwitchEffect::tabBoxAdded( int mode )
|
|||
if( !mActivated )
|
||||
{
|
||||
// only for windows mode
|
||||
input = effects->createFullScreenInputWindow( this, Qt::BlankCursor );
|
||||
if( mode == TabBoxWindowsMode && effects->currentTabBoxWindowList().count() > 0 )
|
||||
{
|
||||
input = effects->createFullScreenInputWindow( this, Qt::BlankCursor );
|
||||
effects->refTabBox();
|
||||
effects->setActiveFullScreenEffect( this );
|
||||
selectedWindow = effects->currentTabBoxWindowList().indexOf(effects->currentTabBoxWindow());
|
||||
|
@ -529,7 +529,8 @@ void FlipSwitchEffect::tabBoxClosed()
|
|||
// if animation than deactivate after animation
|
||||
mActivated = false;
|
||||
effects->unrefTabBox();
|
||||
effects->destroyInputWindow( input );
|
||||
if( input )
|
||||
effects->destroyInputWindow( input );
|
||||
if( mAnimation )
|
||||
{
|
||||
if( start && rearrangeWindows == 0 )
|
||||
|
|
Loading…
Reference in a new issue