Deactivate scene idle during active fullscreen effect. So mouse events aren't dropped and mouse is usable in fullscreen effects, again. Of course this is not the best solution.

BUG: 177226

svn path=/trunk/KDE/kdebase/workspace/; revision=906064
This commit is contained in:
Martin Gräßlin 2009-01-05 13:34:41 +00:00
parent be5c6ce3c2
commit 6a25ea49ee

View file

@ -337,8 +337,10 @@ void Workspace::performCompositing()
if( !scene->waitSyncAvailable()) if( !scene->waitSyncAvailable())
nextPaintReference = QTime::currentTime(); nextPaintReference = QTime::currentTime();
checkCursorPos(); checkCursorPos();
if(( repaints_region.isEmpty() && !windowRepaintsPending()) // no damage if((( repaints_region.isEmpty() && !windowRepaintsPending()) // no damage
|| !overlay_visible ) // nothing is visible anyway || !overlay_visible ) // nothing is visible anyway
// HACK: don't idle during active full screen effect so that mouse events are not dropped (bug #177226)
&& !static_cast< EffectsHandlerImpl* >( effects )->activeFullScreenEffect() )
{ {
scene->idle(); scene->idle();
// Note: It would seem here we should undo suspended unredirect, but when scenes need // Note: It would seem here we should undo suspended unredirect, but when scenes need