aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/RootSubWindow-animations.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-07-20 17:17:54 -0400
committerKen Moore <ken@ixsystems.com>2017-07-20 17:17:54 -0400
commit334bb3d2ebb26ea518c0f2c98490d79d6b3e77ef (patch)
treec211f9cbb2ca6a03d75fe1b95abb71d82bf99b10 /src-qt5/core/libLumina/RootSubWindow-animations.cpp
parentAdd a window animation framework, with 7 visibility animations for starters. (diff)
downloadlumina-334bb3d2ebb26ea518c0f2c98490d79d6b3e77ef.tar.gz
lumina-334bb3d2ebb26ea518c0f2c98490d79d6b3e77ef.tar.bz2
lumina-334bb3d2ebb26ea518c0f2c98490d79d6b3e77ef.zip
Get the compositing and window interactions all cleaned up. Seems to work great now.
Diffstat (limited to 'src-qt5/core/libLumina/RootSubWindow-animations.cpp')
-rw-r--r--src-qt5/core/libLumina/RootSubWindow-animations.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow-animations.cpp b/src-qt5/core/libLumina/RootSubWindow-animations.cpp
index e3deed3a..ac813e3a 100644
--- a/src-qt5/core/libLumina/RootSubWindow-animations.cpp
+++ b/src-qt5/core/libLumina/RootSubWindow-animations.cpp
@@ -64,6 +64,7 @@ void RootSubWindow::loadAnimation(QString name, NativeWindow::Property prop, QVa
animResetProp = anim->startValue();
QTimer::singleShot(anim->duration(), this, SLOT(hide()) );
}
+ WinWidget->pause();
anim->start();
this->show();
} //end of Visibility animation
@@ -80,10 +81,10 @@ void RootSubWindow::animFinished(){
//Also ensure that the proper geometry is saved to the window structure
QRect curg = this->geometry();
QRect wing = WIN->geometry();
- qDebug() << " - After Animation Reset:" << curg << wing;
+ //qDebug() << " - After Animation Reset:" << curg << wing;
if(curg!=wing){
QRect clientg = clientGlobalGeom();
- qDebug() << "Sub Window geometry:" << clientg;
+ //qDebug() << "Sub Window geometry:" << clientg;
WIN->setProperties(QList< NativeWindow::Property>() << NativeWindow::Size << NativeWindow::GlobalPos,
QList<QVariant>() << clientg.size() << clientg.topLeft() );
WinWidget->resyncWindow(); //also let the window know about the current geometry
@@ -91,4 +92,6 @@ void RootSubWindow::animFinished(){
}
}
animResetProp = QVariant(); //clear the variable
+ WinWidget->resume();
+
}
bgstack15