diff --git a/effects/coverswitch.cpp b/effects/coverswitch.cpp index 7cbcd993b9..331ca67279 100644 --- a/effects/coverswitch.cpp +++ b/effects/coverswitch.cpp @@ -572,6 +572,7 @@ void CoverSwitchEffect::tabBoxAdded( int mode ) { effects->refTabBox(); effects->setActiveFullScreenEffect( this ); + input = effects->createFullScreenInputWindow( this, Qt::BlankCursor ); selectedWindow = effects->currentTabBoxWindowList().indexOf(effects->currentTabBoxWindow()); mActivated = true; if( animateStart ) @@ -623,6 +624,7 @@ void CoverSwitchEffect::tabBoxClosed() effects->setActiveFullScreenEffect( 0 ); mActivated = false; effects->unrefTabBox(); + effects->destroyInputWindow( input ); effects->addRepaintFull(); } } diff --git a/effects/coverswitch.h b/effects/coverswitch.h index 5e17d0ec78..fc650f311a 100644 --- a/effects/coverswitch.h +++ b/effects/coverswitch.h @@ -2,7 +2,7 @@ KWin - the KDE window manager This file is part of the KDE project. - Copyright (C) 2008 Martin Gräßlin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -65,6 +65,7 @@ class CoverSwitchEffect TimeLine timeLine; QRect area; bool twinview; + Window input; }; } // namespace diff --git a/effects/flipswitch.cpp b/effects/flipswitch.cpp index e9fb8a358d..1022317515 100644 --- a/effects/flipswitch.cpp +++ b/effects/flipswitch.cpp @@ -2,7 +2,7 @@ KWin - the KDE window manager This file is part of the KDE project. - Copyright (C) 2008 Martin Gräßlin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -457,6 +457,7 @@ void FlipSwitchEffect::postPaintScreen() { addFullRepaint = false; effects->setActiveFullScreenEffect( 0 ); + effects->destroyInputWindow( input ); effects->addRepaintFull(); } effects->postPaintScreen(); @@ -492,6 +493,7 @@ void FlipSwitchEffect::tabBoxAdded( int mode ) { effects->refTabBox(); effects->setActiveFullScreenEffect( this ); + input = effects->createFullScreenInputWindow( this, Qt::BlankCursor ); selectedWindow = effects->currentTabBoxWindowList().indexOf(effects->currentTabBoxWindow()); if( !stop && !stopRequested ) { @@ -540,7 +542,10 @@ void FlipSwitchEffect::tabBoxClosed() } } else - effects->setActiveFullScreenEffect( 0 ); + { + effects->setActiveFullScreenEffect( 0 ); + effects->destroyInputWindow( input ); + } } } diff --git a/effects/flipswitch.h b/effects/flipswitch.h index c88dbd012c..da24989c5d 100644 --- a/effects/flipswitch.h +++ b/effects/flipswitch.h @@ -2,7 +2,7 @@ KWin - the KDE window manager This file is part of the KDE project. - Copyright (C) 2008 Martin Gräßlin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -57,6 +57,7 @@ class FlipSwitchEffect bool twinview; QRect area; TimeLine timeLine; + Window input; }; } // namespace