aboutsummaryrefslogtreecommitdiff
path: root/lumina-wm-INCOMPLETE/main.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-11-03 13:32:35 -0500
committerKen Moore <moorekou@gmail.com>2015-11-03 13:32:35 -0500
commit8417684b84a2ff4bb07c28c89274c045fd4104f8 (patch)
tree754ade19c856f79c00e3fdf3d9c220d62aa87e97 /lumina-wm-INCOMPLETE/main.cpp
parentAdd all the animations framework for the screensaver side of lumina-wm (with ... (diff)
downloadlumina-8417684b84a2ff4bb07c28c89274c045fd4104f8.tar.gz
lumina-8417684b84a2ff4bb07c28c89274c045fd4104f8.tar.bz2
lumina-8417684b84a2ff4bb07c28c89274c045fd4104f8.zip
Clean up the Screensaver framework a bit more, add a test flag (--test-ss), and fix up the starting of screensavers on all screens simultaneously.
This solidifies the Screensaver plugin framework as completely functional - just need to finish up the lock/unlock screen now.
Diffstat (limited to 'lumina-wm-INCOMPLETE/main.cpp')
-rw-r--r--lumina-wm-INCOMPLETE/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lumina-wm-INCOMPLETE/main.cpp b/lumina-wm-INCOMPLETE/main.cpp
index 683bbb24..53079a2f 100644
--- a/lumina-wm-INCOMPLETE/main.cpp
+++ b/lumina-wm-INCOMPLETE/main.cpp
@@ -28,7 +28,7 @@ int main(int argc, char ** argv)
QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina");
//Setup the global structures
LWM::SYSTEM = new LXCB();
- if(argc>1 && QString::fromLocal8Bit(argv[1])=="testwin"){
+ if( a.inputlist.contains("--test-win") ){
//Simple override to test out the window class
qDebug() << "Starting window test...";
QLabel dlg(0, Qt::Window | Qt::BypassWindowManagerHint); //this test should be ignored by the current WM
@@ -36,8 +36,9 @@ int main(int argc, char ** argv)
dlg.setWindowTitle("Test");
dlg.resize(200,100);
dlg.setStyleSheet("background: rgba(255,255,255,100); color: black;");
- dlg.show();
dlg.move(100,100);
+ dlg.show();
+ //dlg.move(100,100);
qDebug() << " - Loading window frame...";
LWindow win(dlg.winId()); //have it wrap around the dialog
qDebug() << " - Show frame...";
@@ -47,7 +48,7 @@ int main(int argc, char ** argv)
return a.exec();
}
WMSession w;
- w.start();
+ w.start(a.inputlist.contains("--test-ss"));
QObject::connect(&themes, SIGNAL(updateIcons()), &w, SLOT(reloadIcons()) );
QObject::connect(&a, SIGNAL(InputsAvailable(QStringList)), &w, SLOT(newInputsAvailable(QStringList)) );
int retCode = a.exec();
bgstack15