From f76b087b33648b8f64d8c59c14de26e6d1f414bf Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Fri, 20 Apr 2012 11:20:01 +0200 Subject: [PATCH] mark title transition as dirty when resizing client, to avoid flicker. CCBUG: 298428 --- clients/oxygen/oxygenclient.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 7a2b021f2a..f633c3d962 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -917,6 +917,7 @@ namespace Oxygen renderTitleText( painter, rect, color, contrast ); } else if( !caption().isEmpty() ) { + renderTitleText( painter, rect, caption(), color, contrast ); } @@ -1407,6 +1408,10 @@ namespace Oxygen // prepare item data updates _itemData.setDirty( true ); + // mark title animation as dirty + if( event->oldSize().width() != event->size().width() ) + { _titleAnimationData->setDirty( true ); } + // resize backing store pixmap if( !compositingActive() ) { _pixmap = QPixmap( event->size() ); }