only animate color filters, when the transition affects colors

This commit is contained in:
Uwe Rathmann 2018-03-23 09:54:35 +01:00
parent 736a28d02f
commit 6005336cf8

View File

@ -515,20 +515,20 @@ void QskSkinTransition::process()
if ( !candidates.isEmpty() ) if ( !candidates.isEmpty() )
{ {
bool firstWindow = true; bool doGraphicFilter = m_mask & QskSkinTransition::Color;
const auto windows = qGuiApp->topLevelWindows(); const auto windows = qGuiApp->topLevelWindows();
for ( const auto window : windows ) for ( const auto window : windows )
{ {
if ( auto quickWindow = qobject_cast< QQuickWindow* >( window ) ) if ( auto quickWindow = qobject_cast< QQuickWindow* >( window ) )
{ {
if ( firstWindow ) if ( doGraphicFilter )
{ {
qskSkinAnimator->addGraphicFilterAnimators( qskSkinAnimator->addGraphicFilterAnimators(
quickWindow, m_animationHint, quickWindow, m_animationHint,
oldFilters, m_skins[1]->graphicFilters() ); oldFilters, m_skins[1]->graphicFilters() );
firstWindow = false; doGraphicFilter = false;
} }
/* /*