Commit f0794438 authored by Martin Flöser's avatar Martin Flöser
Browse files

Redirect windows when there is an active fullscreen effect. This solves the...

Redirect windows when there is an active fullscreen effect. This solves the problem of unredirected fullscreen applications blocking effects like present windows or desktop grid.
BUG: 176996

svn path=/trunk/KDE/kdebase/workspace/; revision=906014
parent e8cbd42d
......@@ -830,7 +830,8 @@ void Toplevel::addWorkspaceRepaint( const QRect& r2 )
bool Toplevel::updateUnredirectedState()
{
assert( compositing());
bool should = shouldUnredirect() && !unredirectSuspend && !shape() && !hasAlpha() && opacity() == 1.0;
bool should = shouldUnredirect() && !unredirectSuspend && !shape() && !hasAlpha() && opacity() == 1.0 &&
!static_cast<EffectsHandlerImpl*>( effects )->activeFullScreenEffect();
if( should && !unredirect )
{
unredirect = true;
......
......@@ -305,6 +305,7 @@ void EffectsHandlerImpl::tabBoxUpdated()
void EffectsHandlerImpl::setActiveFullScreenEffect( Effect* e )
{
fullscreen_effect = e;
Workspace::self()->checkUnredirect();
}
Effect* EffectsHandlerImpl::activeFullScreenEffect() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment