diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | lumina-wm-INCOMPLETE/LWindow.cpp | 4 | ||||
-rw-r--r-- | lumina-wm-INCOMPLETE/main.cpp | 3 |
3 files changed, 5 insertions, 3 deletions
@@ -14,4 +14,5 @@ lumina-screenshot/lumina-screenshot lumina-search/lumina-search lumina-fileinfo/lumina-fileinfo lumina-xconfig/lumina-xconfig +lumina-wm*/lumina-wm libLumina/libLuminaUtils.so* diff --git a/lumina-wm-INCOMPLETE/LWindow.cpp b/lumina-wm-INCOMPLETE/LWindow.cpp index d6ad188c..9d9f9fcd 100644 --- a/lumina-wm-INCOMPLETE/LWindow.cpp +++ b/lumina-wm-INCOMPLETE/LWindow.cpp @@ -222,11 +222,11 @@ void LWindow::showAnimation(LWM::WindowAction act){ //Setup the animation routine if(act==LWM::Show){ if(useanimation){ - if(lastGeom.isEmpty()){ lastGeom = this->geometry(); } //such as for a first showing + lastGeom = this->geometry(); //Expand out from center point anim->setPropertyName("geometry"); anim->setStartValue( QRect(lastGeom.center(), QSize(0,0) ) ); - anim->setEndValue( QRect(lastGeom) ); + anim->setEndValue( this->geometry() ); //Fade in gradually //anim->setPropertyName("windowOpacity"); //anim->setStartValue( 0.0 ); diff --git a/lumina-wm-INCOMPLETE/main.cpp b/lumina-wm-INCOMPLETE/main.cpp index e4eee4ee..683bbb24 100644 --- a/lumina-wm-INCOMPLETE/main.cpp +++ b/lumina-wm-INCOMPLETE/main.cpp @@ -34,9 +34,10 @@ int main(int argc, char ** argv) QLabel dlg(0, Qt::Window | Qt::BypassWindowManagerHint); //this test should be ignored by the current WM dlg.setText("Sample Window"); dlg.setWindowTitle("Test"); - dlg.setGeometry(100,100,200,100); + dlg.resize(200,100); dlg.setStyleSheet("background: rgba(255,255,255,100); color: black;"); dlg.show(); + dlg.move(100,100); qDebug() << " - Loading window frame..."; LWindow win(dlg.winId()); //have it wrap around the dialog qDebug() << " - Show frame..."; |