aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-29 14:08:35 -0400
committerKen Moore <ken@ixsystems.com>2017-06-29 14:08:35 -0400
commit1b8947f958d5ad1600a9eff5fe5fdf0f327d6926 (patch)
tree18c7de8707c2645620c75d97681b6d1dfaa0ed41
parentMake sure we set the root flag that window opacity is supported. (diff)
downloadlumina-1b8947f958d5ad1600a9eff5fe5fdf0f327d6926.tar.gz
lumina-1b8947f958d5ad1600a9eff5fe5fdf0f327d6926.tar.bz2
lumina-1b8947f958d5ad1600a9eff5fe5fdf0f327d6926.zip
Add some window close debugging, and change the setVisible animation to a window zoom rather than opacity (the frame is not technically an independant window).
-rw-r--r--src-qt5/core/libLumina/NativeWindowSystem.cpp2
-rw-r--r--src-qt5/core/libLumina/RootSubWindow.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp
index d90b9dc1..ad5c969c 100644
--- a/src-qt5/core/libLumina/NativeWindowSystem.cpp
+++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp
@@ -721,9 +721,11 @@ void NativeWindowSystem::WindowCloseDetected(WId id){
NativeWindow *win = findWindow(id);
qDebug() << "Got Window Closed" << id << win;
if(win!=0){
+ qDebug() << "Old Window List:" << NWindows.length();
NWindows.removeAll(win);
win->emit WindowClosed(id);
win->deleteLater();
+ qDebug() << " - Now:" << NWindows.length();
}else{
win = findTrayWindow(id);
if(win!=0){
diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp
index 88dca132..0aa97c54 100644
--- a/src-qt5/core/libLumina/RootSubWindow.cpp
+++ b/src-qt5/core/libLumina/RootSubWindow.cpp
@@ -265,8 +265,9 @@ void RootSubWindow::propertiesChanged(QList<NativeWindow::Property> props, QList
//qDebug() << "Got Visibility Change:" << vals[i];
if(vals[i].toBool()){
WinWidget->setVisible(true);
- anim->setPropertyName("windowOpacity");
- anim->setStartValue(0.0); anim->setEndValue(1.0);
+ anim->setPropertyName("geometry");
+ anim->setStartValue( QRect(this->geometry().center(), QSize(0,0)) );
+ anim->setEndValue(this->geometry());
anim->start();
this->show();
}
bgstack15