diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-29 14:50:28 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-29 14:50:28 -0400 |
commit | aff9df01be61d2fb969ba38ba8c5721fac8384f6 (patch) | |
tree | ca1e8020f71dc75fefd3d9a24c1b0cb93bd70565 /src-qt5/core/libLumina | |
parent | Add an animation finished routine so we can re-load any Window settings which... (diff) | |
download | lumina-aff9df01be61d2fb969ba38ba8c5721fac8384f6.tar.gz lumina-aff9df01be61d2fb969ba38ba8c5721fac8384f6.tar.bz2 lumina-aff9df01be61d2fb969ba38ba8c5721fac8384f6.zip |
Fix up the animation finished routine - should work fine now
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r-- | src-qt5/core/libLumina/RootSubWindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp index d5a2795d..2e773e9d 100644 --- a/src-qt5/core/libLumina/RootSubWindow.cpp +++ b/src-qt5/core/libLumina/RootSubWindow.cpp @@ -325,7 +325,10 @@ void RootSubWindow::propertiesChanged(QList<NativeWindow::Property> props, QList } void RootSubWindow::animFinished(){ - if(anim->propertyName()=="geometry"){ this->setGeometry(this->geometry()); } //make sure to send one more resize/move event + if(anim->propertyName()=="geometry"){ + WIN->requestProperty(NativeWindow::Size, WinWidget->size()); + WIN->setProperty(NativeWindow::GlobalPos, WinWidget->mapToGlobal(QPoint(0,0)) ); + } } |