From 6a25ea49eebf876ee1a2b54d0bb7956b752dbbf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 5 Jan 2009 13:34:41 +0000 Subject: [PATCH] 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 --- composite.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composite.cpp b/composite.cpp index e256110904..3579c42ff4 100644 --- a/composite.cpp +++ b/composite.cpp @@ -337,8 +337,10 @@ void Workspace::performCompositing() if( !scene->waitSyncAvailable()) nextPaintReference = QTime::currentTime(); checkCursorPos(); - if(( repaints_region.isEmpty() && !windowRepaintsPending()) // no damage + if((( repaints_region.isEmpty() && !windowRepaintsPending()) // no damage || !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(); // Note: It would seem here we should undo suspended unredirect, but when scenes need