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() )
{
bool firstWindow = true;
bool doGraphicFilter = m_mask & QskSkinTransition::Color;
const auto windows = qGuiApp->topLevelWindows();
for ( const auto window : windows )
{
if ( auto quickWindow = qobject_cast< QQuickWindow* >( window ) )
{
if ( firstWindow )
if ( doGraphicFilter )
{
qskSkinAnimator->addGraphicFilterAnimators(
quickWindow, m_animationHint,
oldFilters, m_skins[1]->graphicFilters() );
firstWindow = false;
doGraphicFilter = false;
}
/*